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));
    }