Esempio n. 1
0
<?php

/**
 * User: Vasiliy Shvakin (orbisnull) zen4dev@gmail.com
 */
return ["sequenceManager" => function ($c) {
    $sm = new \Sequence\Model\SequenceManager();
    $config = $c->getConfig();
    $sm->setConfig($config);
    $dba = \DeltaDb\DbaStorage::getDba();
    $sm->setDba($dba);
    return $sm;
}];
Esempio n. 2
0
<?php

return ["init" => ["dba" => function ($c) {
    \DeltaDb\DbaStorage::setDefault($c["dbDefaultAdapterClosure"]);
}]];
Esempio n. 3
0
 public function getAdapter()
 {
     if (is_null($this->adapter)) {
         $this->adapter = DbaStorage::getDba($this->getDba());
     }
     return $this->adapter;
 }