Phpmig\Console\Command\AbstractCommand::bootstrapContainer PHP Метод

bootstrapContainer() защищенный Метод

protected bootstrapContainer ( ) : ArrayAccess
Результат ArrayAccess The container
    protected function bootstrapContainer()
    {
        $bootstrapFile = $this->getBootstrap();
        $func = function () use($bootstrapFile) {
            return require $bootstrapFile;
        };
        $container = $func();
        if (!$container instanceof \ArrayAccess) {
            throw new \RuntimeException($bootstrapFile . " must return object of type \\ArrayAccess");
        }
        return $container;
    }