From 3e4d3761fdec878758e43779eab124816596c8aa Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Sun, 11 Nov 2012 14:18:11 +0100 Subject: [ticket/11152] Rename collection to collection_pass PHPBB3-11152 --- phpBB/includes/di/pass/collection.php | 47 ------------------------------ phpBB/includes/di/pass/collection_pass.php | 47 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 47 deletions(-) delete mode 100644 phpBB/includes/di/pass/collection.php create mode 100644 phpBB/includes/di/pass/collection_pass.php (limited to 'phpBB/includes') diff --git a/phpBB/includes/di/pass/collection.php b/phpBB/includes/di/pass/collection.php deleted file mode 100644 index 09e4b08f62..0000000000 --- a/phpBB/includes/di/pass/collection.php +++ /dev/null @@ -1,47 +0,0 @@ -collection_service = $collection_service; - $this->service_tag = $service_tag; - } - - /** - * Modify the container before it is passed to the rest of the code - * - * @param ContainerBuilder $container ContainerBuilder object - * @return null - */ - public function process(ContainerBuilder $container) - { - $definition = $container->getDefinition($this->collection_service); - - foreach ($container->findTaggedServiceIds($this->service_tag) as $id => $data) - { - $definition->addMethodCall('add', array($id)); - } - } -} diff --git a/phpBB/includes/di/pass/collection_pass.php b/phpBB/includes/di/pass/collection_pass.php new file mode 100644 index 0000000000..70a44d1d51 --- /dev/null +++ b/phpBB/includes/di/pass/collection_pass.php @@ -0,0 +1,47 @@ +collection_service = $collection_service; + $this->service_tag = $service_tag; + } + + /** + * Modify the container before it is passed to the rest of the code + * + * @param ContainerBuilder $container ContainerBuilder object + * @return null + */ + public function process(ContainerBuilder $container) + { + $definition = $container->getDefinition($this->collection_service); + + foreach ($container->findTaggedServiceIds($this->service_tag) as $id => $data) + { + $definition->addMethodCall('add', array($id)); + } + } +} -- cgit v1.2.1