Skip to content

Commit 2fb8367

Browse files
authored
Modifications suggested by lcharette
1 parent ae54e26 commit 2fb8367

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

app/system/Bakery/Command/Routes.php renamed to app/system/Bakery/Command/RouteListCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Symfony\Component\Console\Input\InputArgument;
1313
use Symfony\Component\Console\Input\InputOption;
1414
use UserFrosting\System\Bakery\BaseCommand;
15-
1615
use Slim\App;
1716
use Slim\Container;
1817

@@ -21,7 +20,7 @@
2120
*
2221
* @author Jose Vasconcellos
2322
*/
24-
class Routes extends BaseCommand
23+
class RouteListCommand extends BaseCommand
2524
{
2625
/**
2726
* @var string Path to the build/ directory
@@ -33,7 +32,7 @@ class Routes extends BaseCommand
3332
*/
3433
protected function configure()
3534
{
36-
$this->setName("routes")
35+
$this->setName("route:list")
3736
->setDescription("Dumps all routes.");
3837
}
3938

@@ -50,7 +49,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
5049

5150
$this->io->title("Generate routes");
5251
$routePaths = array_reverse($this->ci->locator->findResources('routes://', true, true));
53-
$routeDirCount=count($routePaths);
5452
$routeCount=0;
5553
foreach ($routePaths as $path) {
5654
$routeFiles = glob($path . '/*.php');

0 commit comments

Comments
 (0)