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 );
	}
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 );
	}
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 ) ; }
Adds the Aimeos shop bundle to the routing file of the application.

@param string $filename Name of the YAML config file
@throws \RuntimeException If file is not found
Adds the Aimeos shop bundle to the routing file of the application .