From 798c006e7fe55bc1de30e42a4c25e8c74911c865 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Sat, 10 Nov 2012 16:38:19 +0100 Subject: [PATCH] [ticket/11152] Convert cron_task_collection to generic di_service_collection PHPBB3-11152 --- phpBB/config/services.yml | 2 +- .../collection.php => di/service_collection.php} | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename phpBB/includes/{cron/task/collection.php => di/service_collection.php} (55%) diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml index b1aaf1660d..76a7049f19 100644 --- a/phpBB/config/services.yml +++ b/phpBB/config/services.yml @@ -45,7 +45,7 @@ services: - %tables.config% cron.task_collection: - class: phpbb_cron_task_collection + class: phpbb_di_service_collection arguments: - @service_container diff --git a/phpBB/includes/cron/task/collection.php b/phpBB/includes/di/service_collection.php similarity index 55% rename from phpBB/includes/cron/task/collection.php rename to phpBB/includes/di/service_collection.php index 84607dc28d..60323c8dba 100644 --- a/phpBB/includes/cron/task/collection.php +++ b/phpBB/includes/di/service_collection.php @@ -15,29 +15,29 @@ if (!defined('IN_PHPBB')) exit; } -use Symfony\Component\DependencyInjection\TaggedContainerInterface; +use Symfony\Component\DependencyInjection\ContainerInterface; /** -* Collects cron tasks +* Collection of services to be configured at container compile time. * * @package phpBB3 */ -class phpbb_cron_task_collection extends ArrayObject +class phpbb_di_service_collection extends ArrayObject { /** * Constructor * - * @param TaggedContainerInterface $container Container object + * @param ContainerInterface $container Container object */ - public function __construct(TaggedContainerInterface $container) + public function __construct(ContainerInterface $container) { $this->container = $container; } /** - * Add a cron task to the collection + * Add a service to the collection * - * @param string $name The service name of the cron task + * @param string $name The service name * @return null */ public function add($name)