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;
}