symfony API

sfSymfonyCommandApplication Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

sfSymfonyCommandApplication manages the symfony CLI.

Inheritence

sfSymfonyCommandApplication  <  sfCommandApplication

Method Summary

  • Boolean autoloadTask($class)
    Autoloads a task class
  • configure()
    Configures the current symfony command application.
  • getLongVersion()
    @see sfCommandApplication
  • loadTasks($configuration)
    Loads all available tasks.
  • integer run($options)
    Runs the current application.

Methods inherited from sfCommandApplication

autodiscoverTasks , clearTasks , configure , fixCgi , getAbbreviations , getFormatter , getLongVersion , getName , getOption , getTask , getTasks , getTaskToExecute , getVersion , guessBestFormatter , handleOptions , help , isStreamSupportsColors , isVerbose , registerTask , registerTasks , renderException , run , setFormatter , setName , setVersion , strlen , withTrace , __construct

Method Details

  • (Boolean) autoloadTask ($class) Browse code

    $class The task class name

    Autoloads a task class

  • configure () Browse code

    Configures the current symfony command application.

  • getLongVersion () Browse code

    @see sfCommandApplication

  • loadTasks ($configuration) Browse code

    $configuration The project configuration

    Loads all available tasks.


    Looks for tasks in the symfony core, the current project and all project plugins.

  • (integer) run ($options) Browse code

    $options The command line options

    Runs the current application.

    returns 0 if everything went fine, or an error code