Skip to content

Commit

Permalink
Merge pull request #10 from Lenskiy-e/upgrade-symfony-version
Browse files Browse the repository at this point in the history
Symfony version update
  • Loading branch information
lexxorlov committed Dec 16, 2022
2 parents 730b3d5 + 15e3dfb commit 1537a85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/QueueExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function grabJobs(array $config, ContainerBuilder $container): array
{
$jobs = [];
foreach ($config['namespaces'] as $key => $namespace) {
$alias = $container->getParameter('kernel.root_dir') . '/../' . str_replace('\\', DIRECTORY_SEPARATOR, trim($namespace, '\\'));
$alias = $container->getParameter('kernel.project_dir') . '/../' . str_replace('\\', DIRECTORY_SEPARATOR, trim($namespace, '\\'));

foreach (glob(sprintf('%s/**.php', $alias)) as $file) {
$className = sprintf('%s\%s', $namespace, basename($file, '.php'));
Expand Down
3 changes: 1 addition & 2 deletions Tests/Data/LoadTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ protected function configure()
{
$extension = new QueueExtension();
$container = new ContainerBuilder();
$container->setParameter('kernel.project_dir', '');
$container->setParameter('kernel.environment', 'prod');
$container->setParameter('kernel.root_dir', realpath(__DIR__ . '/../../../../SfCod/'));
$container->setParameter('kernel.project_dir', realpath(__DIR__ . '/../../../../SfCod/'));
$container->set(LoggerInterface::class, new Logger('test'));

$extension->load([
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
}
],
"require": {
"php": "^7.1",
"symfony/framework-bundle": "^4.4 || ^5.0",
"php": "^7.4",
"symfony/framework-bundle": "^5.4",
"symfony/monolog-bundle": "^3.1",
"symfony/process": "^4.4 || ^5.0",
"symfony/dotenv": "^4.4 || ^5.0"
"symfony/process": "^5.4",
"symfony/dotenv": "^5.4"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.0",
"symfony/phpunit-bridge": "^5.4",
"friendsofphp/php-cs-fixer": "^2.8",
"helmich/mongomock": "^2.1",
"phpunit/phpunit": "^7.5"
Expand Down

0 comments on commit 1537a85

Please sign in to comment.