Example #1
0
 /**
  * @return string
  */
 public function getTableName()
 {
     if (null === $this->tableName) {
         $this->tableName = $this->config->get('doctrine.alias.email_queue');
     }
     return $this->tableName;
 }
 /**
  * @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);
             }
         }
     }
 }
Example #3
0
 /**
  * @return Config
  */
 public function getConfig()
 {
     if (null === $this->getContainer()->get('config')) {
         $this->getContainer()->set('config', Config::factory());
     }
     return $this->getContainer()->get('config');
 }