Parser
class Parser (View source)
Methods
static array | parse(string $expression) Parse the given console command definition into an array. |
|
static array | parameters(array $tokens) Extract all of the parameters from the tokens. |
|
static InputArgument | parseArgument(string $token) Parse an argument expression. |
|
static InputOption | parseOption(string $token) Parse an option expression. |
Details
static array parse(string $expression)
Parse the given console command definition into an array.
static protected array parameters(array $tokens)
Extract all of the parameters from the tokens.
static protected InputArgument parseArgument(string $token)
Parse an argument expression.
static protected InputOption parseOption(string $token)
Parse an option expression.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Console/Parser.html