diff --git a/composer.json b/composer.json index 55cf879..68c9e2d 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "license": "MIT", "require": { "php": ">=7.2", - "symfony/framework-bundle": "^4.4|^5.0|^6.0", + "symfony/framework-bundle": "^6.0|^7.0", "twig/twig": "^2.15|^3.0", "symfony/deprecation-contracts": "^2.4|^3.0" }, @@ -23,10 +23,10 @@ }, "require-dev": { "symfony/phpunit-bridge": "^5.0|^6.0", - "nyholm/symfony-bundle-test": "^v2.0", + "nyholm/symfony-bundle-test": "^3.0", "matthiasnoback/symfony-dependency-injection-test": "^4.0", "doctrine/doctrine-bundle": "^v1.0|^v2.0", - "doctrine/annotations": "^v1.7", + "doctrine/annotations": "^2.0", "symfony/twig-bundle": "^3.4|^4.0|^5.0|^6.0" }, "autoload-dev": { diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 46e48d6..84af863 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -16,7 +16,7 @@ class Configuration implements ConfigurationInterface { #[\ReturnTypeWillChange] - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('apy_breadcrumb_trail'); // BC layer for symfony/config < 4.2 diff --git a/src/EventListener/BreadcrumbListener.php b/src/EventListener/BreadcrumbListener.php index 6978c56..c037aab 100644 --- a/src/EventListener/BreadcrumbListener.php +++ b/src/EventListener/BreadcrumbListener.php @@ -70,7 +70,7 @@ public function onKernelController(KernelEvent $event) throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class)); } - if (HttpKernelInterface::MASTER_REQUEST == $event->getRequestType()) { + if (HttpKernelInterface::MAIN_REQUEST == $event->getRequestType()) { $this->breadcrumbTrail->reset(); // Annotations from class diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 8d882c4..677127b 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -19,5 +19,14 @@ + + + + + + + + +