diff options
author | Nils Adermann <naderman@naderman.de> | 2012-11-11 09:05:15 -0800 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2012-11-11 09:05:15 -0800 |
commit | 69845585a2bc6720e6c512227f436782c7bf5d29 (patch) | |
tree | 70fc24b25612a99f2c3ac8664e1df7561d69f680 /phpBB/includes/cron/task/provider.php | |
parent | 504158ceaba18bb8bc61d54504a2c870d0eb0407 (diff) | |
parent | 1bf7f0bde73a8528f77b5f9cfffd6f113afcf63d (diff) | |
download | forums-69845585a2bc6720e6c512227f436782c7bf5d29.tar forums-69845585a2bc6720e6c512227f436782c7bf5d29.tar.gz forums-69845585a2bc6720e6c512227f436782c7bf5d29.tar.bz2 forums-69845585a2bc6720e6c512227f436782c7bf5d29.tar.xz forums-69845585a2bc6720e6c512227f436782c7bf5d29.zip |
Merge pull request #1056 from igorw/feature/compiled-dic
[feature/compiled-dic] Compile the DI Container into a cached class
Diffstat (limited to 'phpBB/includes/cron/task/provider.php')
-rw-r--r-- | phpBB/includes/cron/task/provider.php | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/phpBB/includes/cron/task/provider.php b/phpBB/includes/cron/task/provider.php deleted file mode 100644 index 134723ebd1..0000000000 --- a/phpBB/includes/cron/task/provider.php +++ /dev/null @@ -1,59 +0,0 @@ -<?php -/** -* -* @package phpBB3 -* @copyright (c) 2011 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -* -*/ - -/** -* @ignore -*/ -if (!defined('IN_PHPBB')) -{ - exit; -} - -use Symfony\Component\DependencyInjection\TaggedContainerInterface; - -/** -* Provides cron manager with tasks -* -* Finds installed cron tasks and makes them available to the cron manager. -* -* @package phpBB3 -*/ -class phpbb_cron_task_provider implements IteratorAggregate -{ - private $container; - - public function __construct(TaggedContainerInterface $container) - { - $this->container = $container; - } - - /** - * Retrieve an iterator over all items - * - * @return ArrayIterator An iterator for the array of cron tasks - */ - public function getIterator() - { - $definitions = $this->container->findTaggedServiceIds('cron.task'); - - $tasks = array(); - foreach ($definitions as $name => $definition) - { - $task = $this->container->get($name); - if ($task instanceof phpbb_cron_task_base) - { - $task->set_name($name); - } - - $tasks[] = $task; - } - - return new ArrayIterator($tasks); - } -} |