protected function console()
    {
        $files = glob($this->getCommandPath() . '/*.php');

        $path = strlen($this->getCommandPath() . DIRECTORY_SEPARATOR);

        $pattern = '/\\.[^.\\s]{3,4}$/';

        foreach ((array) $files as $file) {
            $class = preg_replace($pattern, '', substr($file, $path));

            $class = $this->getCommandNamespace() . '\\' . $class;

            $reflection = new \ReflectionClass($class);

            if (! $reflection->isAbstract()) {
                $this->console->add($this->injector->make($class));
            }
        }

        return $this->console;
    }