AbstractContainerAwareCommand
extends AbstractCommand
in package
Abstract base class for generator commands relying on the service container.
Tags
Table of Contents
- $container : ContainerInterface
- Top-level service container
- $generatorTools : GeneratorTools
- Generator tools
- __construct() : mixed
- Constructor
Properties
$container
Top-level service container
protected
ContainerInterface
$container
$generatorTools
Generator tools
protected
GeneratorTools
$generatorTools
Methods
__construct()
Constructor
public
__construct(GeneratorTools $tools, ContainerInterface $container[, string|null $name = null ]) : mixed
Parameters
- $tools : GeneratorTools
-
Generator tools
- $container : ContainerInterface
-
Top-level service container
- $name : string|null = null
-
The name of the command; passing null means it must be set in configure()