public static function buildBootstrap(Event $event)
    {
        $options = static::getOptions($event);
        $bootstrapDir = $autoloadDir = $options['symfony-app-dir'];

        if (static::useNewDirectoryStructure($options)) {
            $bootstrapDir = $options['symfony-var-dir'];
            if (!static::hasDirectory($event, 'symfony-var-dir', $bootstrapDir, 'build bootstrap file')) {
                return;
            }
        }

        if (!static::useSymfonyAutoloader($options)) {
            $autoloadDir = $options['vendor-dir'];
        }

        if (!static::hasDirectory($event, 'symfony-app-dir', $autoloadDir, 'build bootstrap file')) {
            return;
        }

        static::executeBuildBootstrap($event, $bootstrapDir, $autoloadDir, $options['process-timeout']);
    }
public static function buildBootstrap(Event $event)
    {
        $options = static::getOptions($event);
        $bootstrapDir = $autoloadDir = $options['symfony-app-dir'];

        if (static::useNewDirectoryStructure($options)) {
            $bootstrapDir = $options['symfony-var-dir'];
            if (!static::hasDirectory($event, 'symfony-var-dir', $bootstrapDir, 'build bootstrap file')) {
                return;
            }
        }

        if (!static::useSymfonyAutoloader($options)) {
            $autoloadDir = $options['vendor-dir'];
        }

        if (!static::hasDirectory($event, 'symfony-app-dir', $autoloadDir, 'build bootstrap file')) {
            return;
        }

        static::executeBuildBootstrap($event, $bootstrapDir, $autoloadDir, $options['process-timeout']);
    }
public static function buildBootstrap ( Event $ event ) { $ options = static :: getOptions ( $ event ) ; $ bootstrapDir = $ autoloadDir = $ options [ 'symfony-app-dir' ] ; if ( static :: useNewDirectoryStructure ( $ options ) ) { $ bootstrapDir = $ options [ 'symfony-var-dir' ] ; if ( ! static :: hasDirectory ( $ event , 'symfony-var-dir' , $ bootstrapDir , 'build bootstrap file' ) ) { return ; } } if ( ! static :: useSymfonyAutoloader ( $ options ) ) { $ autoloadDir = $ options [ 'vendor-dir' ] ; } if ( ! static :: hasDirectory ( $ event , 'symfony-app-dir' , $ autoloadDir , 'build bootstrap file' ) ) { return ; } static :: executeBuildBootstrap ( $ event , $ bootstrapDir , $ autoloadDir , $ options [ 'process-timeout' ] ) ; }
Builds the bootstrap file.

The bootstrap file contains PHP file that are always needed by the application.
It speeds up the application bootstrapping.

@param Event $event
Builds the bootstrap file .