summaryrefslogtreecommitdiff
path: root/app/Helper/App.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-22 19:06:03 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-22 19:06:03 +0100
commit6f9af3659c9146a2ac1b08d70610bf96398ec073 (patch)
tree21cbbca979a30d133d421881d6aa6e6af8096199 /app/Helper/App.php
parentc83f589b22cd548c6de10bfb0c18f767ba7dffd8 (diff)
Added the possiblity to define custom routes from plugins
Diffstat (limited to 'app/Helper/App.php')
-rw-r--r--app/Helper/App.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/Helper/App.php b/app/Helper/App.php
index 33729f2b..6e6028fc 100644
--- a/app/Helper/App.php
+++ b/app/Helper/App.php
@@ -2,15 +2,28 @@
namespace Kanboard\Helper;
+use Kanboard\Core\Base;
+
/**
* Application helpers
*
* @package helper
* @author Frederic Guillot
*/
-class App extends \Kanboard\Core\Base
+class App extends Base
{
/**
+ * Get plugin name from route
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginName()
+ {
+ return $this->router->getPlugin();
+ }
+
+ /**
* Get router controller
*
* @access public