Skip to content

Commit

Permalink
whooops, we still need this
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed May 24, 2022
1 parent 19b9fb9 commit 4f6a482
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/MakerTestDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function addExtraDependencies(string ...$packages): self

public function setRequiredPhpVersion(int $version): self
{
@trigger_deprecation('symfony/maker-bundle', '0.0.0', 'setRequiredPhpVersion() is no longer used and will be removed in a future version.');
@trigger_deprecation('symfony/maker-bundle', 'v1.44.0', 'setRequiredPhpVersion() is no longer used and will be removed in a future version.');

$this->requiredPhpVersion = $version;

Expand Down
18 changes: 18 additions & 0 deletions src/Test/MakerTestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,27 @@ public function copy(string $source, string $destination)

/**
* When using an authenticator "fixtures" file, this adjusts it to support Symfony 5.2/5.3.
*
* @deprecated Legacy PassportInterface support will be dropped in a future version.
*/
public function adjustAuthenticatorForLegacyPassportInterface(string $filename): void
{
// no adjustment needed on 5.4 and higher
if ($this->getSymfonyVersion() >= 50400) {
return;
}

$this->replaceInFile(
$filename,
'\\Passport;',
"\\Passport;\nuse Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface;"
);

$this->replaceInFile(
$filename,
': Passport',
': PassportInterface'
);
}

public function renderTemplateFile(string $source, string $destination, array $variables): void
Expand Down

0 comments on commit 4f6a482

Please sign in to comment.