public static function get($index)
{
$instance = self::getInstance();
if (!$instance->offsetExists($index)) {
throw new RuntimeException("No entry is registered for key '{$index}'");
}
return $instance->offsetGet($index);
}
/** * Test * * @return void */ public function testInvokeUnsecure() { $coreConfig = Registry::get('Application')->getServiceManager()->get('CoreConfig'); $basePath = $coreConfig->setValue('force_backend_ssl', 0); $basePath = $coreConfig->setValue('unsecure_cdn_base_path', 'http://got-cms.com'); $this->assertEquals('http://got-cms.com/test', $this->object->__invoke('test')); }