diff --git a/CHANGELOG.md b/CHANGELOG.md index d3931d92..f905e8bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,9 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee - Allow to configure cache listeners on the cache plugin ### Changed -- tests are excluded from zip releases + +- Tests are excluded from zip releases +- Define plugin service templates as abstract to avoid warnings from Symfony ## 1.17.0 - 2019-12-27 diff --git a/src/DependencyInjection/HttplugExtension.php b/src/DependencyInjection/HttplugExtension.php index dcb88648..5fd60376 100644 --- a/src/DependencyInjection/HttplugExtension.php +++ b/src/DependencyInjection/HttplugExtension.php @@ -216,7 +216,9 @@ private function configurePluginByName($name, Definition $definition, array $con $definition ->replaceArgument(0, new Reference($config['cache_pool'])) ->replaceArgument(1, new Reference($config['stream_factory'])) - ->replaceArgument(2, $options); + ->replaceArgument(2, $options) + ->setAbstract(false) + ; break; @@ -242,6 +244,7 @@ private function configurePluginByName($name, Definition $definition, array $con if (!empty($config['formatter'])) { $definition->replaceArgument(1, new Reference($config['formatter'])); } + $definition->setAbstract(false); break; @@ -261,7 +264,10 @@ private function configurePluginByName($name, Definition $definition, array $con break; case 'stopwatch': - $definition->replaceArgument(0, new Reference($config['stopwatch'])); + $definition + ->replaceArgument(0, new Reference($config['stopwatch'])) + ->setAbstract(false) + ; break; diff --git a/src/Resources/config/plugins.xml b/src/Resources/config/plugins.xml index 3a34c91d..984517d6 100644 --- a/src/Resources/config/plugins.xml +++ b/src/Resources/config/plugins.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + @@ -18,13 +18,13 @@ - + null - +