public static function getGenerator($moduleConfigurationArray, $createCommandStrategyName)
 {
     $commandStrategy = new TableGeneratorStrategyFactory($createCommandStrategyName);
     $generator = new TableGenerator($commandStrategy->getCommand());
     $generator->parseConfiguration($moduleConfigurationArray);
     return $generator;
 }
Пример #2
0
 public function execCommands(\AppBuilder\Models\TableGenerator\TableGenerator $generator)
 {
     $generator->runRelationsCommands();
     $generator->runTablesCommands();
 }