From 224a7ac90f260ba4231620f15f552ff70272b968 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 10 Jun 2024 13:47:50 +0200 Subject: [PATCH 1/2] Mark the DI extension and the Configuration classes as internal Those classes are meant to be used only as implementation of the bundle semantic configuration, not directly. --- src/DependencyInjection/Configuration.php | 3 +++ src/DependencyInjection/StofDoctrineExtensionsExtension.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index ea976f66..483d087e 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -6,6 +6,9 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; +/** + * @internal + */ class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder(): TreeBuilder diff --git a/src/DependencyInjection/StofDoctrineExtensionsExtension.php b/src/DependencyInjection/StofDoctrineExtensionsExtension.php index 3cd28fbe..749e2d9c 100644 --- a/src/DependencyInjection/StofDoctrineExtensionsExtension.php +++ b/src/DependencyInjection/StofDoctrineExtensionsExtension.php @@ -11,6 +11,9 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; +/** + * @internal + */ class StofDoctrineExtensionsExtension extends Extension { private const LISTENER_EVENTS = array( From a80a2a95bfef43f4846e9aadd4b378a4c7c7494c Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 10 Jun 2024 13:49:05 +0200 Subject: [PATCH 2/2] Remove usage of the deprecation HttpKernel base extension class This bundle does not rely on the extra (deprecated) features provided in the HttpKernel base class. --- src/DependencyInjection/StofDoctrineExtensionsExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DependencyInjection/StofDoctrineExtensionsExtension.php b/src/DependencyInjection/StofDoctrineExtensionsExtension.php index 749e2d9c..1f0fb1eb 100644 --- a/src/DependencyInjection/StofDoctrineExtensionsExtension.php +++ b/src/DependencyInjection/StofDoctrineExtensionsExtension.php @@ -5,8 +5,8 @@ use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\Alias; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\Config\Definition\Processor; +use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder;