<?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; }];
<?php return ["init" => ["dba" => function ($c) { \DeltaDb\DbaStorage::setDefault($c["dbDefaultAdapterClosure"]); }]];
public function getAdapter() { if (is_null($this->adapter)) { $this->adapter = DbaStorage::getDba($this->getDba()); } return $this->adapter; }