protected static function updateRoutingFile( $filename )
	{
		$content = '';

		if( file_exists( $filename ) && ( $content = file_get_contents( $filename ) ) === false ) {
			throw new \RuntimeException( sprintf( 'File "%1$s" not readable', $filename ) );
		}

		if( strpos( $content, 'fos_user:' ) === false )
		{
			$content .= "\n" . 'fos_user:
    resource: "@FOSUserBundle/Resources/config/routing/all.xml"';
		}

		if( strpos( $content, 'aimeos_shop:' ) === false )
		{
			$content .= "\n" . 'aimeos_shop:
    resource: "@AimeosShopBundle/Resources/config/routing.yml"
    prefix: /';
		}

		$fs = new Filesystem();
		$fs->dumpFile( $filename, $content );
	}