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; } }
/** * 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']; } }