-
Configures the current command application.
-
Fixes php behavior if using cgi php.
-
getAbbreviations ($names)
Browse code
Returns an array of possible abbreviations given a set of names.
-
(object The) getFormatter ()
Browse code
Returns the formatter instance.
returns formatter instance
-
(string) getLongVersion ()
Browse code
Returns the long version of the application.
returns The long application version
-
Gets the name of the application.
returns The application name
-
(mixed) getOption ($name)
Browse code
Returns the value of a given option.
returns The option value
-
| $name |
The task name or alias
|
Returns a registered task by name or alias.
returns An sfTask object
-
Returns all registered tasks.
returns An array of sfTask objects
-
getTaskToExecute ($name)
Browse code
| $name |
The task name or a task shortcut
|
Gets a task from a task name or a shortcut.
returns A sfTask object
-
(string) getVersion ()
Browse code
Gets the application version.
returns The application version
-
handleOptions ($options = null)
Browse code
| $options |
The command line options
|
Parses and handles command line options.
-
Outputs a help message for the current application.
-
-
(Boolean) isVerbose ()
Browse code
Returns whether the application must be verbose.
returns true if the application must be verbose, false otherwise
-
Registers a task object.
-
registerTasks ($tasks = null)
Browse code
Registers an array of task objects.
If you pass null, this method will register all available tasks.
-
renderException ((Exception) $e)
Browse code
Renders an exception.
-
(integer) run ($options = null)
Browse code
| $options |
The command line options
|
Runs the current application.
returns 0 if everything went fine, or an error code
-
| $name |
The application name
|
Sets the application name.
-
| $version |
The application version
|
Sets the application version.
-
-
(Boolean) withTrace ()
Browse code
Returns whether the application must activate the trace.
returns true if the application must activate the trace, false otherwise
-
__construct ($dispatcher, $formatter, $options = array())
Browse code
| $dispatcher |
A sfEventDispatcher instance
|
| $formatter |
A sfFormatter instance
|
| $options |
An array of options
|
Constructor.