private function addConfig(ParsableInterface $file)
    {
        $app = $this->getContainer();

        try {
            $newConfig = $file->parse();
        } catch (RuntimeException $e) {
            $app['logger.flash']->danger($e->getMessage());
            $app['logger.system']->error($e->getMessage(), ['event' => 'exception', 'exception' => $e]);
            throw $e;
        }

        if (is_array($newConfig)) {
            $this->config = Arr::replaceRecursive($this->config, $newConfig);
        }
    }
private function addConfig(ParsableInterface $file)
    {
        $app = $this->getContainer();

        try {
            $newConfig = $file->parse();
        } catch (RuntimeException $e) {
            $app['logger.flash']->danger($e->getMessage());
            $app['logger.system']->error($e->getMessage(), ['event' => 'exception', 'exception' => $e]);
            throw $e;
        }

        if (is_array($newConfig)) {
            $this->config = Arr::replaceRecursive($this->config, $newConfig);
        }
    }
private function addConfig ( ParsableInterface $ file ) { $ app = $ this -> getContainer ( ) ; try { $ newConfig = $ file -> parse ( ) ; } catch ( RuntimeException $ e ) { $ app [ 'logger.flash' ] -> danger ( $ e -> getMessage ( ) ) ; $ app [ 'logger.system' ] -> error ( $ e -> getMessage ( ) , [ 'event' => 'exception' , 'exception' => $ e ] ) ; throw $ e ; } if ( is_array ( $ newConfig ) ) { $ this -> config = Arr :: replaceRecursive ( $ this -> config , $ newConfig ) ; } }
Merge in a yaml file to the config.

@param ParsableInterface $file
Merge in a yaml file to the config .