Kraken\Root\Runtime\Provider\RuntimeManagerProvider::createManager PHP Метод

createManager() приватный Метод

private createManager ( Kraken\Container\ContainerInterface $container, Kraken\Runtime\RuntimeManagerFactoryInterface $managerFactory, mixed[] $default, mixed[] $config ) : Kraken\Runtime\RuntimeManagerInterface
$container Kraken\Container\ContainerInterface
$managerFactory Kraken\Runtime\RuntimeManagerFactoryInterface
$default mixed[]
$config mixed[]
Результат Kraken\Runtime\RuntimeManagerInterface
    private function createManager(ContainerInterface $container, RuntimeManagerFactoryInterface $managerFactory, $default, $config)
    {
        $managerClass = $config['class'];
        $managerConfig = array_merge($default, $config['config']);
        foreach ($managerConfig as $key => $value) {
            if (is_string($value) && class_exists($value)) {
                $managerConfig[$key] = $container->make($value);
            }
        }
        return $managerFactory->create($managerClass, [$managerConfig]);
    }