Returns whether the user may be asked for input.
public isInteractive ( ) : boolean | ||
return | boolean | Returns `true` if the user may be asked for input and `false` otherwise. |
private function getResolvedProfile(Args $args, IO $io) { $profileResolver = new AutomaticProfileResolver($this->config); if ($io->isInteractive()) { $profileResolver = new InteractiveProfileResolver($this->config, $this->style, $profileResolver); } return $this->profileConfigResolver->resolve($profileResolver->resolve($args->getArgument('profile'))->name); }