Symfony\Bundle\FrameworkBundle\Console\Application::get PHP Method

get() public method

public get ( $name )
    public function get($name)
    {
        $this->registerCommands();
        return parent::get($name);
    }

Usage Example

 /**
  * Executor which runs a command.
  *
  * @param string $name
  * @param array  $args
  *
  * @return CommandTester
  */
 protected function executeCommand(string $name, array $args = []) : CommandTester
 {
     $application = new Application($this->getKernel());
     $tester = new CommandTester($application->get($name));
     $tester->execute($args, ['interactive' => false]);
     return $tester;
 }
All Usage Examples Of Symfony\Bundle\FrameworkBundle\Console\Application::get