Navigation Menu

Skip to content

Commit

Permalink
Route controller namespace issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjoydesk committed Jun 7, 2017
1 parent e89718f commit 3a14b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cygnite/Router/Controller/RouteController.php
Expand Up @@ -196,7 +196,7 @@ public function getModuleDir()
*/
private function setControllerConfig($args, $param, $module = false)
{
$this->controller = Inflector::classify($param[0]) . 'Controller';
$this->controller = (string_has($param[0], ['_', '-'])) ? Inflector::classify($param[0]) : $param[0] . 'Controller';

if ($module) {
$this->namespace = '\\' . $this->getModuleDir() . '\\' . $args[0] . '\\Controllers\\';
Expand Down

0 comments on commit 3a14b90

Please sign in to comment.