/**
  * @inheritdoc
  */
 public function getController(Request $request)
 {
     $route = explode(':', $request->attributes->get('_route'));
     $module = $this->engine->getModule($route[0]);
     $method = sprintf(self::FORMAT_CONTROLLER_METHOD_NAME, NameUtilities::convertToCamelCase($route[1]));
     if (!method_exists($module, $method)) {
         $module = $this->engine->getModule($this->engine->config('engine.module-resolution.default-controller'));
         $method = sprintf(self::FORMAT_CONTROLLER_METHOD_NAME, $this->engine->config('engine.module-resolution.default-controller-method'));
     }
     return array($module, $method);
 }
 /**
  * @inheritdoc
  */
 public function getSitegearVendorResourcesRoot()
 {
     return sprintf('%s/%s', $this->engine->getSiteInfo()->getSiteRoot(), $this->engine->config('system.resources.vendor-resources'));
 }
 /**
  * @inheritdoc
  */
 public function getSiteEmail($key)
 {
     return $this->engine->config('site.email.' . $key);
 }