Application::doRun()

int doRun(InputInterface $input, OutputInterface $output) Runs the current application. Parameters InputInterface $input An Input instance OutputInterface $output An Output instance Return Value int 0 if everything went fine, or an error code

Application::extractNamespace()

string extractNamespace(string $name, string $limit = null) Returns the namespace part of the command name. This method is not part of public API and should not be used directly. Parameters string $name The full name of the command string $limit The maximum number of parts of the namespace Return Value string The namespace of the command

Application::doRun()

int doRun(InputInterface $input, OutputInterface $output) Runs the current application. Parameters InputInterface $input An Input instance OutputInterface $output An Output instance Return Value int 0 if everything went fine, or an error code

Application::add()

Command|null add(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 Command $command A Command object Return Value Command|null The registered command if enabled or null

Application::addCommands()

addCommands(array $commands) Adds an array of command objects. If a Command is not enabled it will not be added. Parameters array $commands An array of commands

Application

class Application An Application is the container for a collection of commands. It is the main entry point of a Console application. This class is optimized for a standard CLI environment. Usage: $app = new Application('myapp', '1.0 (stable)'); $app->add(new SimpleCommand()); $app->run(); Methods __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') Constructor. setDispatcher(EventDispatcherInterface $dispatcher) int run(InputInterface $input = null, Output

Application::all()

Command[] all(string $namespace = null) Gets the commands (registered in the given namespace if provided). The array keys are the full names and the values the command instances. Parameters string $namespace A namespace name Return Value Command[] An array of Command instances

Application

class Application extends Application Application. Methods __construct(KernelInterface $kernel) Constructor. setDispatcher(EventDispatcherInterface $dispatcher) from Application int run(InputInterface $input = null, OutputInterface $output = null) Runs the current application. from Application int doRun(InputInterface $input, OutputInterface $output) Runs the current application. setHelperSet(HelperSet $helperSet) Set a helper set to be used with the command. from App

ApcUniversalClassLoader deprecated

class ApcUniversalClassLoader extends UniversalClassLoader deprecated since version 2.4, to be removed in 3.0. Use the {@link ClassLoader} class instead. ApcUniversalClassLoader implements a "universal" autoloader cached in APC for PHP 5.3. It is able to load classes that use either: The technical interoperability standards for PHP 5.3 namespaces and class names (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md); The PEAR naming convention for classes (http://pear.p

ApcClassLoader

class ApcClassLoader ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3. It expects an object implementing a findFile method to find the file. This allows using it as a wrapper around the other loaders of the component (the ClassLoader for instance) but also around any other autoloaders following this convention (the Composer one for instance). // with a Symfony autoloader use Symfony\Component\ClassLoader\ClassLoader; $loader = new ClassLoader(); $loader->addPrefi