/** * {@inheritdoc} */ public function before(Arguments $arguments) { if (!isset($arguments['update-kernel'])) { $arguments['update-kernel'] = !$arguments->get('no-update-kernel', false); } if (!isset($arguments['update-routing'])) { $arguments['update-routing'] = !$arguments->get('no-update-routing', false); } }
/** * {@inheritdoc} */ public function before(Arguments $arguments) { $bundleController = $arguments->get('bundle-controller', null); $bundle = null; $controller = null; if (is_string($bundleController) && strpos($bundleController, ':') !== false) { list($bundle, $controller) = explode(':', $bundleController, 2); $controller = $this->getNameForNamespace($controller); } $arguments['bundle'] = $bundle; $arguments['controller'] = $controller; }
/** * Set the value of a property in arguments to the value interactively retrieved. * @param Arguments $arguments * @param string $property * @param string|InputTypeInterface $type * @param array $options */ public function set(Arguments $arguments, $property, $type, array $options = []) { $options = $this->validateAndUpdateOptions($options, $type); $constraints = []; if (is_array($this->constraints) && isset($this->constraints[$property])) { $constraints = $this->constraints[$property]; } $options['constraints'] = $constraints; $options['property'] = $property; if ($options['default'] === null && $arguments->get($property, null) !== null) { $options['default'] = $arguments[$property]; } $result = $this->ask($type, $options); $arguments[$property] = $result; }