Contao\CoreBundle\Command\AutomatorCommand::generateCommandMap PHP Метод

generateCommandMap() приватный Метод

Generates the command map from the Automator class.
private generateCommandMap ( ) : array
Результат array
    private function generateCommandMap()
    {
        $this->framework->initialize();
        $commands = [];
        // Find all public methods
        $class = new \ReflectionClass('Contao\\Automator');
        $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
        foreach ($methods as $method) {
            if ($method->getDeclaringClass() == $class && !$method->isConstructor()) {
                $commands[] = $method->name;
            }
        }
        return $commands;
    }