public static function defineDirectoryStructure(Event $event)
    {
        $options = static::getOptions($event);

        if (!getenv('SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE') || !$event->getIO()->askConfirmation('Would you like to use Symfony 3 directory structure? [y/N] ', false)) {
            return;
        }

        $rootDir = getcwd();
        $appDir = $options['symfony-app-dir'];
        $webDir = $options['symfony-web-dir'];
        $binDir = static::$options['symfony-bin-dir'] = 'bin';
        $varDir = static::$options['symfony-var-dir'] = 'var';

        static::updateDirectoryStructure($event, $rootDir, $appDir, $binDir, $varDir, $webDir);
    }
public static function defineDirectoryStructure(Event $event)
    {
        $options = static::getOptions($event);

        if (!getenv('SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE') || !$event->getIO()->askConfirmation('Would you like to use Symfony 3 directory structure? [y/N] ', false)) {
            return;
        }

        $rootDir = getcwd();
        $appDir = $options['symfony-app-dir'];
        $webDir = $options['symfony-web-dir'];
        $binDir = static::$options['symfony-bin-dir'] = 'bin';
        $varDir = static::$options['symfony-var-dir'] = 'var';

        static::updateDirectoryStructure($event, $rootDir, $appDir, $binDir, $varDir, $webDir);
    }
public static function defineDirectoryStructure ( Event $ event ) { $ options = static :: getOptions ( $ event ) ; if ( ! getenv ( 'SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE' ) || ! $ event -> getIO ( ) -> askConfirmation ( 'Would you like to use Symfony 3 directory structure? [y/N] ' , false ) ) { return ; } $ rootDir = getcwd ( ) ; $ appDir = $ options [ 'symfony-app-dir' ] ; $ webDir = $ options [ 'symfony-web-dir' ] ; $ binDir = static :: $ options [ 'symfony-bin-dir' ] = 'bin' ; $ varDir = static :: $ options [ 'symfony-var-dir' ] = 'var' ; static :: updateDirectoryStructure ( $ event , $ rootDir , $ appDir , $ binDir , $ varDir , $ webDir ) ; }
Asks if the new directory structure should be used, installs the structure if needed.

@param Event $event
Asks if the new directory structure should be used installs the structure if needed .