Methods summary
	
		| 
			 public 
			
			
			 | 
		#
		__construct( string $name = 'UNKNOWN', string $version = 'UNKNOWN' )
			Constructor. Parameters
					$nameThe name of the application$versionThe version of the application | 
	
		| 
			 public 
			
			
			 | 
		#
		setDispatcher( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
			
		 
			
		 | 
	
		| 
			 public 
			integer
			
			 |  | 
	
		| 
			 public 
			integer
			
			 |  | 
	
		| 
			 public 
			
			
			 |  | 
	
		| 
			 public 
			Symfony\Component\Console\Helper\HelperSet | 
		#
		getHelperSet( )
			Get the helper set associated with the command. 
			Get the helper set associated with the command. Returns | 
	
		| 
			 public 
			
			
			 |  | 
	
		| 
			 public 
			Symfony\Component\Console\Input\InputDefinition | 
		#
		getDefinition( )
			Gets the InputDefinition related to this Application. 
			Gets the InputDefinition related to this Application. Returns | 
	
		| 
			 public 
			string
			
			 | 
		#
		getHelp( )
			Gets the help message. Returns
					stringA help message
 | 
	
		| 
			 public 
			
			
			 | 
		#
		setCatchExceptions( boolean $boolean )
			Sets whether to catch exceptions or not during commands execution. 
			Sets whether to catch exceptions or not during commands execution. Parameters
					$booleanWhether to catch exceptions or not during commands execution | 
	
		| 
			 public 
			
			
			 | 
		#
		setAutoExit( boolean $boolean )
			Sets whether to automatically exit after a command execution or not. 
			Sets whether to automatically exit after a command execution or not. Parameters
					$booleanWhether to automatically exit after a command execution or not | 
	
		| 
			 public 
			string
			
			 | 
		#
		getName( )
			Gets the name of the application. 
			Gets the name of the application. Returns
					stringThe application name
 | 
	
		| 
			 public 
			
			
			 | 
		#
		setName( string $name )
			Sets the application name. 
			Sets the application name. Parameters
					$nameThe application name | 
	
		| 
			 public 
			string
			
			 | 
		#
		getVersion( )
			Gets the application version. 
			Gets the application version. Returns
					stringThe application version
 | 
	
		| 
			 public 
			
			
			 | 
		#
		setVersion( string $version )
			Sets the application version. 
			Sets the application version. Parameters
					$versionThe application version | 
	
		| 
			 public 
			string
			
			 | 
		#
		getLongVersion( )
			Returns the long version of the application. 
			Returns the long version of the application. Returns
					stringThe long application version
 | 
	
		| 
			 public 
			Symfony\Component\Console\Command\Command | 
		#
		register( string $name )
			Registers a new command. ParametersReturns | 
	
		| 
			 public 
			
			
			 | 
		#
		addCommands( array $commands )
			Adds an array of command objects. 
			Adds an array of command objects. If a Command is not enabled it will not be added. Parameters
					$commandsAn array of commands | 
	
		| 
			 public 
			Symfony\Component\Console\Command\Command|null | 
		#
		add( Symfony\Component\Console\Command\Command$command )
			Adds a command object. If a command with the same name already exists, it will be overridden.
If the command is not enabled it will not be added. Parameters
					$commandA Command objectReturns | 
	
		| 
			 public 
			Symfony\Component\Console\Command\Command | 
		#
		get( string $name )
			Returns a registered command by name or alias. 
			Returns a registered command by name or alias. Parameters
					$nameThe command name or aliasReturnsThrows | 
	
		| 
			 public 
			boolean
			
			 | 
		#
		has( string $name )
			Returns true if the command exists, false otherwise. 
			Returns true if the command exists, false otherwise. Parameters
					$nameThe command name or aliasReturns
					booleantrue if the command exists, false otherwise
 | 
	
		| 
			 public 
			string[]
			
			 | 
		#
		getNamespaces( )
			Returns an array of all unique namespaces used by currently registered commands. 
			Returns an array of all unique namespaces used by currently registered commands. It does not return the global namespace which always exists. Returns
					string[]An array of namespaces
 | 
	
		| 
			 public 
			string
			
			 | 
		#
		findNamespace( string $namespace )
			Finds a registered namespace by a name or an abbreviation. 
			Finds a registered namespace by a name or an abbreviation. Parameters
					$namespaceA namespace or abbreviation to search forReturns
					stringA registered namespace
 Throws | 
	
		| 
			 public 
			Symfony\Component\Console\Command\Command | 
		#
		find( string $name )
			Finds a command by name or alias. 
			Finds a command by name or alias. Contrary to get, this command tries to find the best
match if you give it an abbreviation of a name or alias. Parameters
					$nameA command name or a command aliasReturnsThrows | 
	
		| 
			 public 
			Symfony\Component\Console\Command\Command[] | 
		#
		all( string $namespace = null )
			Gets the commands (registered in the given namespace if provided). 
			Gets the commands (registered in the given namespace if provided). The array keys are the full names and the values the command instances. Parameters
					$namespaceA namespace nameReturns | 
	
		| 
			 public static
			array
			
			 | 
		#
		getAbbreviations( array $names )
			Returns an array of possible abbreviations given a set of names. 
			Returns an array of possible abbreviations given a set of names. ParametersReturns
					arrayAn array of abbreviations
 | 
	
		| 
			 public 
			string
			
			 | 
		#
		asText( string $namespace = null, boolean $raw = false )
			Returns a text representation of the Application. 
			Returns a text representation of the Application. Deprecated
						since version 2.3, to be removed in 3.0.
 Parameters
					$namespaceAn optional namespace name$rawWhether to return raw command listReturns
					stringA string representing the Application
 | 
	
		| 
			 public 
			string|DOMDocument
			
			 | 
		#
		asXml( string $namespace = null, boolean $asDom = false )
			Returns an XML representation of the Application. 
			Returns an XML representation of the Application. Deprecated
						since version 2.3, to be removed in 3.0.
 Parameters
					$namespaceAn optional namespace name$asDomWhether to return a DOM or an XML stringReturns
					string|DOMDocumentAn XML string representing the Application
 | 
	
		| 
			 public 
			
			
			 |  | 
	
		| 
			 protected 
			integer|null
			
			 | 
		#
		getTerminalWidth( )
			Tries to figure out the terminal width in which this application runs. 
			Tries to figure out the terminal width in which this application runs. Returns
					integer|null
				 | 
	
		| 
			 protected 
			integer|null
			
			 | 
		#
		getTerminalHeight( )
			Tries to figure out the terminal height in which this application runs. 
			Tries to figure out the terminal height in which this application runs. Returns
					integer|null
				 | 
	
		| 
			 public 
			array
			
			 | 
		#
		getTerminalDimensions( )
			Tries to figure out the terminal dimensions based on the current environment. 
			Tries to figure out the terminal dimensions based on the current environment. Returns
					arrayArray containing width and height
 | 
	
		| 
			 public 
			Symfony\Component\Console\Application | 
		#
		setTerminalDimensions( integer $width, integer $height )
			Sets terminal dimensions. 
			Sets terminal dimensions. Can be useful to force terminal dimensions for functional tests. Parameters
					$widthThe width$heightThe heightReturns | 
	
		| 
			 protected 
			
			
			 |  | 
	
		| 
			 protected 
			integer
			
			 |  | 
	
		| 
			 protected 
			string
			
			 |  | 
	
		| 
			 protected 
			Symfony\Component\Console\Input\InputDefinition |  | 
	
		| 
			 protected 
			Symfony\Component\Console\Command\Command[] | 
		#
		getDefaultCommands( )
			Gets the default commands that should always be available. 
			Gets the default commands that should always be available. Returns | 
	
		| 
			 protected 
			Symfony\Component\Console\Helper\HelperSet | 
		#
		getDefaultHelperSet( )
			Gets the default helper set with the helpers that should always be available. 
			Gets the default helper set with the helpers that should always be available. Returns | 
	
	
		| 
			 public 
			
			
			 | 
		#
		setDefaultCommand( string $commandName )
			Sets the default Command name. 
			Sets the default Command name. Parameters
					$commandNameThe Command name |