コード例 #1
0
ファイル: MysqlPlatform.php プロジェクト: bondarovich/Propel2
 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
ファイル: BehaviorLocator.php プロジェクト: disider/Propel2
 /**
  * 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'];
     }
 }