lithium\console\command\Create::_params PHP Method

_params() protected method

Parse a template to find available variables specified in {:name} format. Each variable corresponds to a method in the sub command. For example, a {:namespace} variable will call the namespace method in the model command when li3 create model Post is called.
protected _params ( ) : array
return array
    protected function _params()
    {
        $contents = $this->_template();
        if (empty($contents)) {
            return array();
        }
        preg_match_all('/(?:\\{:(?P<params>[^}]+)\\})/', $contents, $keys);
        if (!empty($keys['params'])) {
            return array_values(array_unique($keys['params']));
        }
        return array();
    }