Skip to content

Commit 0632777

Browse files
committed
Replace ProgressHelper with ProgressBar
Signed-off-by: Matt Friedman <maf675@gmail.com> fix Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 4764541 commit 0632777

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

console/command/composer/rebuild_repo.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use phpbb\titania\manage\tool\composer\rebuild_repo as rebuild_tool;
1717
use phpbb\user;
18+
use Symfony\Component\Console\Helper\ProgressBar;
1819
use Symfony\Component\Console\Input\InputArgument;
1920
use Symfony\Component\Console\Input\InputInterface;
2021
use Symfony\Component\Console\Input\InputOption;
@@ -74,8 +75,8 @@ protected function configure()
7475
*/
7576
protected function execute(InputInterface $input, OutputInterface $output)
7677
{
77-
$progress = $this->getHelper('progress');
78-
$progress->start($output, $this->tool->get_total());
78+
$progress = new ProgressBar($output, $this->tool->get_total());
79+
$progress->start();
7980

8081
$result = $this->tool
8182
->set_start(0)

manage/tool/composer/rebuild_repo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use phpbb\titania\entity\package;
2323
use phpbb\titania\ext;
2424
use phpbb\titania\manage\tool\base;
25-
use Symfony\Component\Console\Helper\ProgressHelper;
25+
use Symfony\Component\Console\Helper\ProgressBar;
2626
use Symfony\Component\Finder\SplFileInfo;
2727

2828
class rebuild_repo extends base
@@ -175,7 +175,7 @@ protected function get_batch($fetch_attach_data)
175175
* from the revision zip files
176176
* @param bool|false $force Force tool to run if a build is already
177177
* in progress
178-
* @param ProgressHelper|null $progress
178+
* @param ProgressBar|null $progress
179179
* @return array
180180
*/
181181
public function run($from_file = false, $force = false, $progress = null)

manage/tool/contribution/resync_count.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use phpbb\titania\ext;
2020
use phpbb\titania\manage\tool\base;
2121
use phpbb\user;
22-
use Symfony\Component\Console\Helper\ProgressHelper;
22+
use Symfony\Component\Console\Helper\ProgressBar;
2323

2424
class resync_count extends base
2525
{
@@ -74,7 +74,7 @@ public function __construct(db_driver_interface $db, type_collection $types, use
7474
* Run the tool
7575
*
7676
* @param int $prev_contrib Previous contrib that was resynced
77-
* @param ProgressHelper|null $progress
77+
* @param ProgressBar|null $progress
7878
* @return array
7979
*/
8080
public function run($prev_contrib = 0, $progress = null)

manage/tool/contribution/update_release_topics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use phpbb\titania\manage\tool\base;
2121
use phpbb\titania\versions;
2222
use phpbb\user;
23-
use Symfony\Component\Console\Helper\ProgressHelper;
23+
use Symfony\Component\Console\Helper\ProgressBar;
2424

2525
class update_release_topics extends base
2626
{
@@ -194,7 +194,7 @@ protected function get_applicable_types()
194194
/**
195195
* Run the tool
196196
*
197-
* @param ProgressHelper|null $progress
197+
* @param ProgressBar|null $progress
198198
* @return array
199199
*/
200200
public function run($progress = null)

manage/tool/search/reindex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use phpbb\titania\search\manager as search_manager;
2020
use phpbb\titania\sync;
2121
use phpbb\user;
22-
use Symfony\Component\Console\Helper\ProgressHelper;
22+
use Symfony\Component\Console\Helper\ProgressBar;
2323

2424
class reindex extends base
2525
{
@@ -155,7 +155,7 @@ protected function get_post_count()
155155
/**
156156
* Run tool
157157
*
158-
* @param ProgressHelper|null $progress
158+
* @param ProgressBar|null $progress
159159
* @return array
160160
*/
161161
public function run($progress = null)

manage/tool/topic/rebuild_urls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use phpbb\titania\ext;
2121
use phpbb\titania\manage\tool\base;
2222
use phpbb\user;
23-
use Symfony\Component\Console\Helper\ProgressHelper;
23+
use Symfony\Component\Console\Helper\ProgressBar;
2424

2525
class rebuild_urls extends base
2626
{
@@ -75,7 +75,7 @@ public function __construct(db_driver_interface $db, user $user, type_collection
7575
/**
7676
* Run tool.
7777
*
78-
* @param ProgressHelper|null $progress
78+
* @param ProgressBar|null $progress
7979
* @return array
8080
*/
8181
public function run($progress = null)

manage/tool/topic/resync_dots.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use phpbb\titania\config\config as ext_config;
1919
use phpbb\titania\manage\tool\base;
2020
use phpbb\user;
21-
use Symfony\Component\Console\Helper\ProgressHelper;
21+
use Symfony\Component\Console\Helper\ProgressBar;
2222

2323
class resync_dots extends base
2424
{
@@ -96,7 +96,7 @@ protected function get_batch()
9696
/**
9797
* Run the tool
9898
*
99-
* @param ProgressHelper|null $progress
99+
* @param ProgressBar|null $progress
100100
* @return array
101101
*/
102102
public function run($progress = null)

0 commit comments

Comments
 (0)