function Command::setApplication
2 calls to Command::setApplication()
- LazyCommand::setApplication in vendor/
symfony/ console/ Command/ LazyCommand.php - LazyCommand::setApplication in vendor/
symfony/ console/ Command/ LazyCommand.php
2 methods override Command::setApplication()
- LazyCommand::setApplication in vendor/
symfony/ console/ Command/ LazyCommand.php - TraceableCommand::setApplication in vendor/
symfony/ console/ Command/ TraceableCommand.php
File
-
vendor/
symfony/ console/ Command/ Command.php, line 116
Class
- Command
- Base class for all commands.
Namespace
Symfony\Component\Console\CommandCode
public function setApplication(?Application $application) : void {
$this->application = $application;
if ($application) {
$this->setHelperSet($application->getHelperSet());
}
else {
$this->helperSet = null;
}
$this->fullDefinition = null;
}