protected static function getOptions(CommandEvent $event) { $options = array_merge(array('symfony-app-dir' => 'app', 'symfony-web-dir' => 'web', 'symfony-assets-install' => 'hard'), $event->getComposer()->getPackage()->getExtra()); $options['symfony-assets-install'] = getenv('SYMFONY_ASSETS_INSTALL') ?: $options['symfony-assets-install']; $options['process-timeout'] = $event->getComposer()->getConfig()->get('process-timeout'); return $options; }
/** * Returns the available options defined in the composer file. * * @param CommandEvent $event Command event object * @return array Associative list of option keys and values */ protected static function getOptions(CommandEvent $event) { return $event->getComposer()->getPackage()->getExtra(); }