Aimeos\ShopBundle\Composer\ScriptHandler::updateConfigFile PHP Method

updateConfigFile() protected static method

Adds the Aimeos shop bundle to the config file of the application.
protected static updateConfigFile ( string $filename )
$filename string Name of the YAML config file
    protected static function updateConfigFile($filename)
    {
        if (($content = file_get_contents($filename)) === false) {
            throw new \RuntimeException(sprintf('File "%1$s" not found', $filename));
        }
        if (self::addAsseticBundle($content) === true) {
            $fs = new Filesystem();
            $fs->dumpFile($filename, $content);
        }
    }