diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 968eda3..426790f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: - '7.4' - '8.0' - '8.1' + - '8.2' symfony: - '3.*' - '4.*' @@ -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.*' } diff --git a/src/DependencyInjection/PayseraApiExtension.php b/src/DependencyInjection/PayseraApiExtension.php index 0fec0aa..d157b41 100644 --- a/src/DependencyInjection/PayseraApiExtension.php +++ b/src/DependencyInjection/PayseraApiExtension.php @@ -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; @@ -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');