169 $this->input
170 );
171
172 // Check if the controller could be created
173 if (!$controller) {
174 throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $name));
175 }
176
177 return $controller;
178 }
179 }