PHP Class lithium\console\Router

Inheritance: extends lithium\core\Object
Show file Open project: unionofrad/lithium Class Usage Examples

Public Methods

Method Description
parse ( Request $request = null ) : array Parse incoming request from console. Short and long (GNU-style) options in the form of -f, --foo, --foo-bar and --foo=bar are parsed.

Method Details

parse() public static method

XF68-style long options (i.e. -foo) are not supported but support can be added by extending this class.
public static parse ( Request $request = null ) : array
$request Request
return array $params