[ticket/11152] Convert cron_task_collection to generic di_service_collection

PHPBB3-11152
This commit is contained in:
Igor Wiedler 2012-11-10 16:38:19 +01:00
parent 38e1c4ec5d
commit 798c006e7f
2 changed files with 8 additions and 8 deletions

View file

@ -45,7 +45,7 @@ services:
- %tables.config%
cron.task_collection:
class: phpbb_cron_task_collection
class: phpbb_di_service_collection
arguments:
- @service_container

View file

@ -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)