lithium\console\command\Create::run PHP 메소드

run() 공개 메소드

Run the create command. Takes $command and delegates to $command::$method
public run ( string $command = null ) : boolean
$command string
리턴 boolean
    public function run($command = null)
    {
        if ($command && !$this->request->args()) {
            return $this->_default($command);
        }
        $this->request->shift();
        $this->template = $this->template ?: $command;
        if (!$command) {
            return false;
        }
        if ($this->_execute($command)) {
            return true;
        }
        $this->error("{$command} could not be created.");
        return false;
    }