From 647bf8eebdd216295bfbaa35e1249b38d51324d1 Mon Sep 17 00:00:00 2001 From: "lenskiy.e@gmail.com" Date: Mon, 12 Dec 2022 17:42:24 +0200 Subject: [PATCH 1/2] upgraded symfony version --- DependencyInjection/QueueExtension.php | 2 +- Tests/Data/LoadTrait.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/QueueExtension.php b/DependencyInjection/QueueExtension.php index f48364d..d59ab12 100644 --- a/DependencyInjection/QueueExtension.php +++ b/DependencyInjection/QueueExtension.php @@ -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')); diff --git a/Tests/Data/LoadTrait.php b/Tests/Data/LoadTrait.php index 07730a0..8332762 100644 --- a/Tests/Data/LoadTrait.php +++ b/Tests/Data/LoadTrait.php @@ -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([ From 15e3dfbdb8febe84b30f52de42a05d80f7c43d5e Mon Sep 17 00:00:00 2001 From: "lenskiy.e@gmail.com" Date: Thu, 15 Dec 2022 23:43:37 +0200 Subject: [PATCH 2/2] upgraded symfony version --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index b5b45e5..235b50c 100644 --- a/composer.json +++ b/composer.json @@ -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"