예제 #1
0
파일: Config.php 프로젝트: sinergi/core
 /**
  * @return string
  */
 public function getTableName()
 {
     if (null === $this->tableName) {
         $this->tableName = $this->config->get('doctrine.alias.email_queue');
     }
     return $this->tableName;
 }
예제 #2
0
 /**
  * @param Config $config
  */
 public function avoidAutoloadCollision(Config $config)
 {
     foreach ($config->get('doctrine.connections') as $config) {
         if (isset($config['paths'])) {
             foreach ($config['paths'] as $path) {
                 $this->loadPath($path);
             }
         }
     }
 }
예제 #3
0
 /**
  * @return Config
  */
 public function getConfig()
 {
     if (null === $this->getContainer()->get('config')) {
         $this->getContainer()->set('config', Config::factory());
     }
     return $this->getContainer()->get('config');
 }