Skip to content

Commit

Permalink
Merge pull request #76 from sumocoders/symfony61
Browse files Browse the repository at this point in the history
Symfony61
  • Loading branch information
Sander authored May 23, 2022
2 parents 080ae6d + 2f90f47 commit cc8fe2f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@
"beberlei/doctrineextensions": "^1.3",
"doctrine/doctrine-migrations-bundle": "^3.2",
"sentry/sentry-symfony": "^4.0",
"sumocoders/framework-core-bundle": "^5.2",
"sumocoders/framework-core-bundle": "^6.0",
"symfony/apache-pack": "^1.0.1",
"symfony/debug-bundle": "^5.3",
"symfony/dotenv": "^5.3",
"symfony/debug-bundle": "^6.0",
"symfony/dotenv": "^6.0",
"symfony/monolog-bundle": "^3.5",
"symfony/security-bundle": "^5.3",
"symfony/web-profiler-bundle": "^5.3",
"symfony/security-bundle": "^6.0",
"symfony/web-profiler-bundle": "^6.0",
"symfony/webpack-encore-bundle": "^1.6.2",
"symfony/expression-language": "^5.3",
"symfony/yaml": "^5.3",
"symfony/validator": "^5.3",
"symfony/messenger": "^5.3",
"symfony/mailer": "^5.3",
"symfony/runtime": "^5.3",
"symfony/expression-language": "^6.0",
"symfony/yaml": "^6.0",
"symfony/validator": "^6.0",
"symfony/messenger": "^6.0",
"symfony/mailer": "^6.0",
"symfony/runtime": "^6.0",
"tijsverkoyen/convert-to-junit-xml": "^1.7",
"willdurand/js-translation-bundle": "^4.0"
"willdurand/js-translation-bundle": "^5.0"
},
"require-dev": {
},
"flex-require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4",
"friendsoftwig/twigcs": "^5.0",
"friendsoftwig/twigcs": "^6.0",
"phpstan/phpstan-symfony": "^1.0",
"squizlabs/php_codesniffer": "^3.4",
"symfony/debug-pack": "*",
Expand Down
6 changes: 3 additions & 3 deletions src/Skeleton/PostCreateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ private static function reconfigureApplication(Event $event): void


$io->notice('→ Reconfigure annotations');
$content = file_get_contents($projectDir . '/config/routes/annotations.yaml');
$content = file_get_contents($projectDir . '/config/routes.yaml');
$matches = [];
preg_match('|controllers:.*annotation|smU', $content, $matches, PREG_OFFSET_CAPTURE);
preg_match('|controllers:.*attribute|smU', $content, $matches, PREG_OFFSET_CAPTURE);
$offset = $matches[0][1] + mb_strlen($matches[0][0]);
$insert = [
' prefix:',
Expand All @@ -424,7 +424,7 @@ private static function reconfigureApplication(Event $event): void
$offset,
"\n" . implode("\n", $insert)
);
file_put_contents($projectDir . '/config/routes/annotations.yaml', $content);
file_put_contents($projectDir . '/config/routes.yaml', $content);

$io->notice('→ Reconfigure framework');
$content = file_get_contents($projectDir . '/config/packages/framework.yaml');
Expand Down

0 comments on commit cc8fe2f

Please sign in to comment.