src/Services/CommandFactory.php
private function listCommands(array &$list, $path, $namespace)
    {
        $classes = [];
        list_classes($classes, $path, $namespace);
        foreach ($classes as $class) {
            /** @var CommandContract $command */
            $command = new $class;
            $name = $command->name();
            $description = trim($command->description() ?: '');
            $list[$name] = compact('class', 'name', 'description');
        }
    }
private function listCommands(array &$list, $path, $namespace)
    {
        $classes = [];
        list_classes($classes, $path, $namespace);
        foreach ($classes as $class) {
            /** @var CommandContract $command */
            $command = new $class;
            $name = $command->name();
            $description = trim($command->description() ?: '');
            $list[$name] = compact('class', 'name', 'description');
        }
    }
private function listCommands ( array & $ list , $ path , $ namespace ) { $ classes = [ ] ; list_classes ( $ classes , $ path , $ namespace ) ; foreach ( $ classes as $ class ) { /** @var CommandContract $command */ $ command = new $ class ; $ name = $ command -> name ( ) ; $ description = trim ( $ command -> description ( ) ? : '' ) ; $ list [ $ name ] = compact ( 'class' , 'name' , 'description' ) ; } }
Read available commands recursive from given path.

@param array &$list Receives the command information
@param string $path
@param string $namespace
Read available commands recursive from given path .