\Framework\Console\CommandsMakeControllerCommand

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
configure()
execute()
$defaultName
$defaultDescription
N/A
generateControllerContent()
No private properties found
N/A

Properties

$defaultName

$defaultName

命令名称 - 必须定义 这是修复错误的关键.

$defaultDescription

$defaultDescription

命令描述.

Methods

configure()

configure() : void

配置命令.

execute()

execute(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) : int

执行命令.

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

Returns

int —

generateControllerContent()

generateControllerContent(string  $controllerName) : string

生成控制器类内容.

Parameters

string $controllerName

Returns

string —