public static function assetsInstall(Event $event)
    {
        $options = self::getOptions($event);
        $consoleDir = self::getConsoleDir($event, 'install assets');

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

        $webDir = $options['web-dir'];

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

        if (!self::hasDirectory(
            $event, 'web-dir', $webDir, 'install assets'
        )) {
            return;
        }

        static::executeCommand(
            $event, $consoleDir, 'assets:install '.
            $symlink.escapeshellarg($webDir)
        );
    }