/** * @param KVDdom_Sessie $sessie */ public function __construct($sessie, $parameters = array()) { $this->_sessie = $sessie; try { $this->_gateway = $sessie->getGateway('KVDgis_Crab2Gateway'); } catch (KVDutil_GatewayUnavailableException $e) { $this->_gateway = KVDgis_Crab2Gateway::newNull(); } }
function testNoGatewayRegistry() { $config = $this->config; try { $sessie = new KVDdom_Sessie($this->gebruikerId, $this->databaseManager, $config, $this->sqlLogger); $sessie->getGateway('test'); $this->fail(); } catch (LogicException $e) { $this->pass(); } }
/** * @param KVDdom_Sessie $sessie */ public function __construct($sessie, $parameters = array()) { $this->_sessie = $sessie; $this->_gateway = $sessie->getGateway('KVDgis_Crab2Gateway'); }