public static function installAssets(Event $event, $checkForCreateProject = true)
    {
        /*
         * Ugly hack to prevent application from being booted before configureProject can be called.
         */
        global $argv;
        if ($checkForCreateProject && strpos(implode(' ', $argv), 'create-project') > 0) {
            return;
        }

        static::runUpdateProjectFromAssets($event);

        $syncer = DirectorySyncer::fromEvent($event);
        $syncer->sync('bolt_assets', 'bolt_assets', true, ['css', 'fonts', 'img', 'js']);
    }
public static function installAssets(Event $event, $checkForCreateProject = true)
    {
        /*
         * Ugly hack to prevent application from being booted before configureProject can be called.
         */
        global $argv;
        if ($checkForCreateProject && strpos(implode(' ', $argv), 'create-project') > 0) {
            return;
        }

        static::runUpdateProjectFromAssets($event);

        $syncer = DirectorySyncer::fromEvent($event);
        $syncer->sync('bolt_assets', 'bolt_assets', true, ['css', 'fonts', 'img', 'js']);
    }
public static function installAssets ( Event $ event , $ checkForCreateProject = true ) { /*
         * Ugly hack to prevent application from being booted before configureProject can be called.
         */ global $ argv ; if ( $ checkForCreateProject && strpos ( implode ( ' ' , $ argv ) , 'create-project' ) > 0 ) { return ; } static :: runUpdateProjectFromAssets ( $ event ) ; $ syncer = DirectorySyncer :: fromEvent ( $ event ) ; $ syncer -> sync ( 'bolt_assets' , 'bolt_assets' , true , [ 'css' , 'fonts' , 'img' , 'js' ] ) ; }
Install Bolt's assets.

This should be ran on "post-install-cmd" and "post-update-cmd" events.

@param Event $event
@param bool  $checkForCreateProject
Install Bolt s assets .