Example #1
0
 /**
  * Construtor.
  * 
  * @param \br\gov\sial\core\persist\persistConfig $config
  * @throws \br\gov\sial\core\persist\exception\PersistException
  * */
 public function __construct(MySQLConfig $config)
 {
     parent::__construct($config);
 }
Example #2
0
 /**
  * @param Connect $persist
  * */
 public static function factory(Connect $persist)
 {
     $NSMeta = __NAMESPACE__ . self::NAMESPACE_SEPARATOR . $persist->getAdapter() . self::NAMESPACE_SEPARATOR . $persist->getDriver() . self::NAMESPACE_SEPARATOR . 'Meta';
     return new $NSMeta($persist);
 }
Example #3
0
 /**
  * {@inheritdoc}
  * */
 protected function _connect(PersistConfig $config)
 {
     return Connect::factory($config);
 }
 /**
  * @return MetaAbstract
  * */
 public function meta()
 {
     $dsName = $this->_bootstrap->config('app.persist.default');
     $config = $this->_bootstrap->config('app.persist')->toArray();
     $pConfig = PersistConfig::factory($dsName, $config);
     $persist = \br\gov\sial\core\persist\database\Connect::factory($pConfig);
     return MetaAbstract::factory($persist);
 }
Example #5
0
 /**
  * Construtor.
  *
  * @param persistConfig $config
  * @throws PersistException
  * */
 public function __construct(PersistDatabaseConfig $config)
 {
     parent::__construct($config);
 }