mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 04:08:01 +08:00
Change the command the desc
This commit is contained in:
parent
2b1ad2d03a
commit
a7e5ac12f9
@ -30,7 +30,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
*/
|
||||
class InfoRouteCommand extends SymfonyCommand
|
||||
{
|
||||
protected $routes = [BASE_PATH . '/config/routes.php'];
|
||||
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
@ -44,15 +43,15 @@ class InfoRouteCommand extends SymfonyCommand
|
||||
|
||||
public function __construct(ContainerInterface $container, ConfigInterface $config)
|
||||
{
|
||||
parent::__construct('info:routes');
|
||||
parent::__construct('describe:routes');
|
||||
$this->container = $container;
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function configure()
|
||||
{
|
||||
$this->setDescription('Get routes [{path}] to get the route info.')
|
||||
->addOption('path', 'p', InputOption::VALUE_OPTIONAL, 'Detail of single route');
|
||||
$this->setDescription('Describe the routes infomation.')
|
||||
->addOption('path', 'p', InputOption::VALUE_OPTIONAL, 'Detail of the specified route');
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
@ -99,7 +98,7 @@ class InfoRouteCommand extends SymfonyCommand
|
||||
$io->success('success.');
|
||||
}
|
||||
|
||||
private function show($data, $output)
|
||||
private function show(array $data, OutputInterface $output)
|
||||
{
|
||||
$rows = [];
|
||||
foreach ($data as $route) {
|
||||
|
Loading…
Reference in New Issue
Block a user