Property | Type | Description | |
---|---|---|---|
$container | League\Container\ContainerInterface | null | The currently active container object, or NULL if not initialized yet. |
Method | Description | |
---|---|---|
addInflectors ( League\Container\ContainerInterface $container ) | Add the Robo League\Container inflectors to the container | |
application ( ) : Robo\Application | ||
config ( ) : Robo\Config | ||
configureContainer ( League\Container\ContainerInterface $container, |
Initialize a container with all of the default Robo services. | |
createDefaultApplication ( null | string $appName = null, null | string $appVersion = null ) : Robo\Application | ||
createDefaultContainer ( null | Symfony\Component\Console\Input\InputInterface $input = null, null | Symfony\Component\Console\Output\OutputInterface $output = null, null | Robo\Application $app = null, null | Robo\Config $config = null ) : League\Container\Container | League\Container\ContainerInterface | Create a container and initiailze it. If you wish to *change* anything defined in the container, then you should call \Robo::configureContainer() instead of this function. | |
getContainer ( ) : League\Container\ContainerInterface | Returns the currently active global container. | |
hasContainer ( ) : boolean | Returns TRUE if the container has been initialized, FALSE otherwise. | |
hasService ( string $id ) : boolean | Indicates if a service is defined in the container. | |
input ( ) : Symfony\Component\Console\Input\InputInterface | Return the input object. | |
logger ( ) : Consolidation\Log\Logger | ||
output ( ) : Symfony\Component\Console\Output\OutputInterface | Return the output object. | |
resultPrinter ( ) : Robo\Log\ResultPrinter | Return the result printer object. | |
run ( string[] $argv, string $commandClasses, null | string $appName = null, null | string $appVersion = null, null | Symfony\Component\Console\Output\OutputInterface $output = null ) : integer | Entrypoint for standalone Robo-based tools. See docs/framework.md. | |
service ( string $id ) : mixed | Retrieves a service from the container. | |
setContainer ( League\Container\ContainerInterface $container ) | Sets a new global container. | |
unsetContainer ( ) | Unsets the global container. |
public static addInflectors ( League\Container\ContainerInterface $container ) | ||
$container | League\Container\ContainerInterface |
public static application ( ) : Robo\Application | ||
return | Robo\Application |
public static configureContainer ( League\Container\ContainerInterface $container, |
||
$container | League\Container\ContainerInterface | |
$app | ||
$config | robo\Config | |
$input | null | Symfony\Component\Console\Input\InputInterface | |
$output | null | Symfony\Component\Console\Output\OutputInterface |
public static createDefaultContainer ( null | Symfony\Component\Console\Input\InputInterface $input = null, null | Symfony\Component\Console\Output\OutputInterface $output = null, null | Robo\Application $app = null, null | Robo\Config $config = null ) : League\Container\Container | League\Container\ContainerInterface | ||
$input | null | Symfony\Component\Console\Input\InputInterface | |
$output | null | Symfony\Component\Console\Output\OutputInterface | |
$app | null | Robo\Application | |
$config | null | Robo\Config | |
return | League\Container\Container | League\Container\ContainerInterface |
public static getContainer ( ) : League\Container\ContainerInterface | ||
return | League\Container\ContainerInterface |
public static hasContainer ( ) : boolean | ||
return | boolean |
public static hasService ( string $id ) : boolean | ||
$id | string | The ID of the service to check. |
return | boolean | TRUE if the specified service exists, FALSE otherwise. |
public static input ( ) : Symfony\Component\Console\Input\InputInterface | ||
return | Symfony\Component\Console\Input\InputInterface |
public static logger ( ) : Consolidation\Log\Logger | ||
return | Consolidation\Log\Logger |
public static output ( ) : Symfony\Component\Console\Output\OutputInterface | ||
return | Symfony\Component\Console\Output\OutputInterface |
public static resultPrinter ( ) : Robo\Log\ResultPrinter | ||
return | Robo\Log\ResultPrinter |
public static run ( string[] $argv, string $commandClasses, null | string $appName = null, null | string $appVersion = null, null | Symfony\Component\Console\Output\OutputInterface $output = null ) : integer | ||
$argv | string[] | |
$commandClasses | string | |
$appName | null | string | |
$appVersion | null | string | |
$output | null | Symfony\Component\Console\Output\OutputInterface | |
return | integer |
public static setContainer ( League\Container\ContainerInterface $container ) | ||
$container | League\Container\ContainerInterface | A new container instance to replace the current. |
protected static ContainerInterface,League\Container|null $container | ||
return | League\Container\ContainerInterface | null |