コード例 #1
0
 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();
 }