all() public method

Get all of the commands registered with the console.
public all ( ) : array
return array
Example #1
0
 /**
  * Get artisan commands to pass through to PsySH.
  *
  * @return array
  */
 protected function getCommands()
 {
     $commands = [];
     foreach ($this->console->all() as $name => $command) {
         if (in_array($name, $this->commandWhiteList)) {
             $commands[] = $command;
         }
     }
     return $commands;
 }