private function getConfigForPath(array $config, string $path, string $alias)
    {
        $steps = explode('.', $path);

        foreach ($steps as $step) {
            if (!\array_key_exists($step, $config)) {
                throw new LogicException(sprintf('Unable to find configuration for "%s.%s"', $alias, $path));
            }

            $config = $config[$step];
        }

        return $config;
    }
private function getConfigForPath(array $config, string $path, string $alias)
    {
        $steps = explode('.', $path);

        foreach ($steps as $step) {
            if (!\array_key_exists($step, $config)) {
                throw new LogicException(sprintf('Unable to find configuration for "%s.%s"', $alias, $path));
            }

            $config = $config[$step];
        }

        return $config;
    }
private function getConfigForPath ( array $ config , string $ path , string $ alias ) { $ steps = explode ( '.' , $ path ) ; foreach ( $ steps as $ step ) { if ( ! \ array_key_exists ( $ step , $ config ) ) { throw new LogicException ( sprintf ( 'Unable to find configuration for "%s.%s"' , $ alias , $ path ) ) ; } $ config = $ config [ $ step ] ; } return $ config ; }
Iterate over configuration until the last step of the given path.

@throws LogicException If the configuration does not exist

@return mixed
Iterate over configuration until the last step of the given path .