diff options
| author | JoshyPHP <s9e.dev@gmail.com> | 2015-06-29 22:15:08 +0200 |
|---|---|---|
| committer | JoshyPHP <s9e.dev@gmail.com> | 2015-06-30 10:31:58 +0200 |
| commit | 119f90e36301463ffd01005a9390d3346be7774f (patch) | |
| tree | f97a5cf382bea3871de1f44fbb5ca1b638a93a99 /phpBB/phpbb/console/command/reparser/reparse.php | |
| parent | 615ab099e228f2d7a35a76557095a65321425963 (diff) | |
| download | forums-119f90e36301463ffd01005a9390d3346be7774f.tar forums-119f90e36301463ffd01005a9390d3346be7774f.tar.gz forums-119f90e36301463ffd01005a9390d3346be7774f.tar.bz2 forums-119f90e36301463ffd01005a9390d3346be7774f.tar.xz forums-119f90e36301463ffd01005a9390d3346be7774f.zip | |
[ticket/13891] Replaced ContainerBuilder with service_collection
PHPBB3-13891
Diffstat (limited to 'phpBB/phpbb/console/command/reparser/reparse.php')
| -rw-r--r-- | phpBB/phpbb/console/command/reparser/reparse.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/phpbb/console/command/reparser/reparse.php b/phpBB/phpbb/console/command/reparser/reparse.php index f2bbe9c7d1..8cefee837f 100644 --- a/phpBB/phpbb/console/command/reparser/reparse.php +++ b/phpBB/phpbb/console/command/reparser/reparse.php @@ -20,21 +20,21 @@ use Symfony\Component\Console\Output\OutputInterface; class reparse extends \phpbb\console\command\command { /** - * @var \phpbb\textreparser\reparser_collection + * @var \phpbb\di\service_collection */ - protected $reparser_collection; + protected $reparsers; /** * Constructor * * @param \phpbb\user $user - * @param \phpbb\textreparser\reparser_collection $reparser_collection + * @param \phpbb\di\service_collection $reparser_collection */ - public function __construct(\phpbb\user $user, \phpbb\textreparser\reparser_collection $reparser_collection) + public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers) { require_once __DIR__ . '/../../../../includes/functions_content.php'; - $this->reparser_collection = $reparser_collection; + $this->reparsers = $reparsers; parent::__construct($user); } @@ -65,7 +65,7 @@ class reparse extends \phpbb\console\command\command if (isset($name)) { // Allow "post_text" to be an alias for "text_reparser.post_text" - if (!isset($this->reparser_collection[$name])) + if (!isset($this->reparsers[$name])) { $name = 'text_reparser.' . $name; } @@ -73,7 +73,7 @@ class reparse extends \phpbb\console\command\command } else { - foreach ($this->reparser_collection as $name => $service) + foreach ($this->reparsers as $name => $service) { $this->reparse($output, $name); } @@ -91,7 +91,7 @@ class reparse extends \phpbb\console\command\command */ protected function reparse(OutputInterface $output, $name) { - $reparser = $this->reparser_collection[$name]; + $reparser = $this->reparsers[$name]; $id = $reparser->get_max_id(); $n = 100; while ($id > 0) |
