class Illuminate / Console / Parser
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Parser

Methods

public static

parse ( $expression ) : array

Parse the given console command definition into an array.

Parameters

  • $expression string
protected static

name ( $expression ) : string

Extract the name of the command from the expression.

Parameters

  • $expression string
protected static

parameters ( array $tokens ) : array

Extract all of the parameters from the tokens.

Parameters

  • $tokens array
protected static

parseArgument ( $token ) : Symfony\...\InputArgument

Parse an argument expression.

Parameters

  • $token string
protected static

parseOption ( $token ) : Symfony\...\InputOption

Parse an option expression.

Parameters

  • $token string
protected static

extractDescription ( $token ) : array

Parse the token into its token and description segments.

Parameters

  • $token string