aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/config/services.yml2
-rw-r--r--phpBB/includes/di/service_collection.php (renamed from phpBB/includes/cron/task/collection.php)14
2 files changed, 8 insertions, 8 deletions
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
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)