symfony API

sfSymfonyCommandApplication Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.2 API OpenSearch


You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfSymfonyCommandApplication manages the symfony CLI.


sfSymfonyCommandApplication  <  sfCommandApplication

Method Summary

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

Methods inherited from sfCommandApplication

configure , fixCgi , getAbbreviations , getFormatter , getLongVersion , getName , getOption , getTask , getTasks , getTaskToExecute , getVersion , handleOptions , help , isDryrun , isVerbose , registerTask , registerTasks , renderException , run , 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

  • 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 = null) Browse code

    $options The command line options

    Runs the current application.

    returns 0 if everything went fine, or an error code