Back to WritableContainerLoader class

Method __construct

public
__construct
(\Psr\Container\ContainerInterface $container, array $commandMap)
Constructor.
Parameters
  • \Psr\Container\ContainerInterface $container A container from which to load command services.
  • array $commandMap An array with command names as keys and service IDs as values.
Since
  • 4.0.0

Method __construct - Source code

/**
 * Constructor.
 *
 * @param   ContainerInterface  $container   A container from which to load command services.
 * @param   array               $commandMap  An array with command names as keys and service IDs as values.
 *
 * @since   4.0.0
 */
public function __construct(ContainerInterface $container, array $commandMap)
{
    $this->container = $container;
    $this->commandMap = $commandMap;
}