Skip to content

Commit

Permalink
SUPPORT-86536 - fixed symfony 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Gaidoba committed Dec 5, 2023
1 parent 5f02b29 commit cd46a8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
symfony:
- '3.*'
- '4.*'
Expand All @@ -30,6 +31,7 @@ jobs:
exclude:
- { php: '8.0', symfony: '3.*' }
- { php: '8.1', symfony: '3.*' }
- { php: '8.2', symfony: '3.*' }
- { php: '7.1', symfony: '5.*' }
- { php: '7.1', symfony: '6.*' }
- { php: '7.2', symfony: '6.*' }
Expand Down
3 changes: 2 additions & 1 deletion src/DependencyInjection/PayseraApiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Doctrine\Persistence\ObjectRepository;
use Paysera\Bundle\ApiBundle\Service\PathAttributeResolver\DoctrinePathAttributeResolver;
use RuntimeException;
use Symfony\Bundle\FrameworkBundle\Routing\AttributeRouteControllerLoader;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -24,7 +25,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('services.xml');

$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services'));
if (class_exists(\Symfony\Bundle\FrameworkBundle\Routing\AttributeRouteControllerLoader::class)) {
if (class_exists(AttributeRouteControllerLoader::class)) {
$loader->load('annotations.xml');
} else {
$loader->load('annotations_legacy.xml');
Expand Down

0 comments on commit cd46a8d

Please sign in to comment.