Heystack\Core\Console\Command\GenerateContainer
Generates the dependency injection container
This command generates the DI container from the provided services files
It is also used via the "GenerateContainerDataObjectTrait" to regenerate the container
on certain database writes
Synopsis
class GenerateContainer
extends Command
{
- // members
- protected $basePath;
- protected $heystackBasePath;
- // methods
- public void __construct()
- protected void configure()
- protected void execute()
- protected HeystackSilverStripeContainerBuilder createContainer()
- protected void loadConfig()
- protected string dumpContainer()
- protected string getRealPath()
Hierarchy
Extends
- Symfony\Component\Console\Command\Command
Members
protected
- $basePath — string
- $heystackBasePath — string
Methods
protected
- configure() — Configure the commands options
- createContainer()
- dumpContainer()
- execute()
- getRealPath() — Allows testing with vfsStream
- loadConfig()