class DependencyInjection (View source)

Prepare our Dependency Injection Container

Properties

protected $handlers

Methods

desiredHandlers($handlerList)

No description

initContainer(Application $application, ConfigInterface $config, InputInterface $input, OutputInterface $output, ClassLoader $loader, DrupalFinder $drupalFinder, SiteAliasManager $aliasManager)

Set up our dependency injection container.

installHandlers($container)

Make sure we are notified on exit, and when bad things happen.

addDrushServices(ContainerInterface $container, ClassLoader $loader, DrupalFinder $drupalFinder, SiteAliasManager $aliasManager, DrushConfig $config)

No description

alterServicesForDrush(ContainerInterface $container, Application $application)

No description

injectApplicationServices(ContainerInterface $container, Application $application)

No description

Details

desiredHandlers($handlerList)

Parameters

$handlerList

initContainer(Application $application, ConfigInterface $config, InputInterface $input, OutputInterface $output, ClassLoader $loader, DrupalFinder $drupalFinder, SiteAliasManager $aliasManager)

Set up our dependency injection container.

Parameters

Application $application
ConfigInterface $config
InputInterface $input
OutputInterface $output
ClassLoader $loader
DrupalFinder $drupalFinder
SiteAliasManager $aliasManager

installHandlers($container)

Make sure we are notified on exit, and when bad things happen.

Parameters

$container

protected addDrushServices(ContainerInterface $container, ClassLoader $loader, DrupalFinder $drupalFinder, SiteAliasManager $aliasManager, DrushConfig $config)

Parameters

ContainerInterface $container
ClassLoader $loader
DrupalFinder $drupalFinder
SiteAliasManager $aliasManager
DrushConfig $config

protected alterServicesForDrush(ContainerInterface $container, Application $application)

Parameters

ContainerInterface $container
Application $application

protected injectApplicationServices(ContainerInterface $container, Application $application)

Parameters

ContainerInterface $container
Application $application