public static function installAssets(Event $event)
    {
        $options = self::getOptions($event);
        $consoleDir = static::getConsoleDir($event, 'install assets');
        $webDir = $options['symfony-web-dir'];

        $symlink = '';
        if ($options['symfony-assets-install'] === 'symlink') {
            $symlink = '--symlink ';
        } elseif ($options['symfony-assets-install'] === 'relative') {
            $symlink = '--symlink --relative ';
        }

        if ($consoleDir === null) {
            return;
        }

        if (!self::isDir($webDir, 'symfony-web-dir')) {
            return;
        }

        static::executeCommand($event, $consoleDir, 'ezpublish:legacy:assets_install ' . $symlink . escapeshellarg($webDir));
    }
public static function installAssets(Event $event)
    {
        $options = self::getOptions($event);
        $consoleDir = static::getConsoleDir($event, 'install assets');
        $webDir = $options['symfony-web-dir'];

        $symlink = '';
        if ($options['symfony-assets-install'] === 'symlink') {
            $symlink = '--symlink ';
        } elseif ($options['symfony-assets-install'] === 'relative') {
            $symlink = '--symlink --relative ';
        }

        if ($consoleDir === null) {
            return;
        }

        if (!self::isDir($webDir, 'symfony-web-dir')) {
            return;
        }

        static::executeCommand($event, $consoleDir, 'ezpublish:legacy:assets_install ' . $symlink . escapeshellarg($webDir));
    }
public static function installAssets ( Event $ event ) { $ options = self :: getOptions ( $ event ) ; $ consoleDir = static :: getConsoleDir ( $ event , 'install assets' ) ; $ webDir = $ options [ 'symfony-web-dir' ] ; $ symlink = '' ; if ( $ options [ 'symfony-assets-install' ] === 'symlink' ) { $ symlink = '--symlink ' ; } elseif ( $ options [ 'symfony-assets-install' ] === 'relative' ) { $ symlink = '--symlink --relative ' ; } if ( $ consoleDir === null ) { return ; } if ( ! self :: isDir ( $ webDir , 'symfony-web-dir' ) ) { return ; } static :: executeCommand ( $ event , $ consoleDir , 'ezpublish:legacy:assets_install ' . $ symlink . escapeshellarg ( $ webDir ) ) ; }
Installs the legacy assets under the web root directory.

For better interoperability, assets are copied instead of symlinked by default.

Even if symlinks work on Windows, this is only true on Windows Vista and later,
but then, only when running the console with admin rights or when disabling the
strict user permission checks (which can be done on Windows 7 but not on Windows
Vista).

@param $event CommandEvent A instance
Installs the legacy assets under the web root directory .