Dumplie\SharedKernel\Infrastructure\Symfony\HttpKernel\Kernel::getKernelParameters PHP Method

getKernelParameters() final protected method

final protected getKernelParameters ( )
    protected final function getKernelParameters()
    {
        $reflection = new ReflectionClass(\Dumplie\SharedKernel\Application\ServiceLocator::class);
        $dumplieRootDir = realpath(dirname($reflection->getFileName()) . '/../../');
        if (!file_exists($dumplieRootDir)) {
            throw new \RuntimeException(sprintf("Dumplie root dir path \"%s\"does not exists.", $dumplieRootDir));
        }
        return array_merge(['dumplie.root_dir' => $dumplieRootDir], parent::getKernelParameters());
    }