getServiceManager()->get('Config'); $appConfig = $config->get('application.ini'); $handleName = $appConfig['HandlesNamespace'] . "\\" . $handleName; if(class_exists($handleName)) { return new $handleName(); }else{ throw new \RuntimeException("Handle not exists"); } } }