/** * @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); }