X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FBootstrap%2FFindGeneratorsCompilerPass.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FBootstrap%2FFindGeneratorsCompilerPass.php;h=601a9d952f1fefb3e3342615420a639eb8fdaef1;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php b/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php new file mode 100644 index 000000000..601a9d952 --- /dev/null +++ b/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php @@ -0,0 +1,44 @@ +serviceTag = $serviceTag; + } + + /** + * @inheritdoc + */ + public function process(ContainerBuilder $container) + { + $taggedServices = $container->findTaggedServiceIds( + $this->serviceTag + ); + + $generators = []; + foreach ($taggedServices as $id => $tags) { + $generators[] = $id; + } + + $container->setParameter('drupal.generators', $generators); + } +}