예제 #1
0
 public function setGeneratorConfig(GeneratorConfigInterface $generatorConfig)
 {
     if ($defaultTableEngine = $generatorConfig->get()['database']['adapters']['mysql']['tableType']) {
         $this->defaultTableEngine = $defaultTableEngine;
     }
     if ($tableEngineKeyword = $generatorConfig->get()['database']['adapters']['mysql']['tableEngineKeyword']) {
         $this->tableEngineKeyword = $tableEngineKeyword;
     }
 }
예제 #2
0
 /**
  * Creates the composer finder
  *
  * @param GeneratorConfigInterface $config build config
  */
 public function __construct(GeneratorConfigInterface $config = null)
 {
     $this->generatorConfig = $config;
     if (null !== $config) {
         $this->composerDir = $config->get()['paths']['composerDir'];
     }
 }