<?phpnamespaceApplication\Model\Test;classStorage{publicstaticfunctionfactory(\Zend\Db\Adapter\Adapter$adapter,$config=null){//print_r($config);die;/* API log? */$config1=array('tables'=>array('MITRA'=>'MITRA',));if(is_array($config)){$conf=array_merge($config1,$config);}else{$conf=$config1;}/* Oracle? Buat storage Oci8, selain itu pakai MySQL */if($adapter->getDriver()instanceof\Zend\Db\Adapter\Driver\Oci8\Oci8){returnnewStorage\Oci8($adapter,$conf);}else{returnnewStorage\Mysql($adapter,$conf);}}}?>