summaryrefslogtreecommitdiff
path: root/app/Core/Router.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
commit9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (patch)
treec58789631d8f729dca8dbbf4108670e567dc25b4 /app/Core/Router.php
parent7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff)
Change namespace to add Kanboard as prefix
Diffstat (limited to 'app/Core/Router.php')
-rw-r--r--app/Core/Router.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Core/Router.php b/app/Core/Router.php
index 55ebe4a8..8f366daf 100644
--- a/app/Core/Router.php
+++ b/app/Core/Router.php
@@ -1,6 +1,6 @@
<?php
-namespace Core;
+namespace Kanboard\Core;
/**
* Router class
@@ -219,7 +219,8 @@ class Router extends Base
$plugin = '';
}
- $class = empty($plugin) ? '\Controller\\'.ucfirst($this->controller) : '\Plugin\\'.ucfirst($plugin).'\Controller\\'.ucfirst($this->controller);
+ $class = '\Kanboard\\';
+ $class .= empty($plugin) ? 'Controller\\'.ucfirst($this->controller) : 'Plugin\\'.ucfirst($plugin).'\Controller\\'.ucfirst($this->controller);
$instance = new $class($this->container);
$instance->beforeAction($this->controller, $this->action);