summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-18 18:13:54 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-18 18:13:54 -0400
commit43cffe282868ff5c32804c34b31baaa1317f5a8e (patch)
tree36f4514e54c28a3e6e7b3b90683b5bed14c49c4a /app/Auth
parent2f3563714b4f293516af46a23779cb24327be363 (diff)
Remove useless class and add new plugin hooks
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/Base.php34
-rw-r--r--app/Auth/Database.php1
-rw-r--r--app/Auth/Github.php3
-rw-r--r--app/Auth/Gitlab.php1
-rw-r--r--app/Auth/Google.php1
-rw-r--r--app/Auth/Ldap.php1
-rw-r--r--app/Auth/RememberMe.php1
-rw-r--r--app/Auth/ReverseProxy.php1
8 files changed, 8 insertions, 35 deletions
diff --git a/app/Auth/Base.php b/app/Auth/Base.php
deleted file mode 100644
index a354c200..00000000
--- a/app/Auth/Base.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace Kanboard\Auth;
-
-use Pimple\Container;
-
-/**
- * Base auth class
- *
- * @package auth
- * @author Frederic Guillot
- */
-abstract class Base extends \Kanboard\Core\Base
-{
- /**
- * Database instance
- *
- * @access protected
- * @var \PicoDb\Database
- */
- protected $db;
-
- /**
- * Constructor
- *
- * @access public
- * @param \Pimple\Container $container
- */
- public function __construct(Container $container)
- {
- $this->container = $container;
- $this->db = $this->container['db'];
- }
-}
diff --git a/app/Auth/Database.php b/app/Auth/Database.php
index 36be669e..91b17a5f 100644
--- a/app/Auth/Database.php
+++ b/app/Auth/Database.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Model\User;
use Kanboard\Event\AuthEvent;
diff --git a/app/Auth/Github.php b/app/Auth/Github.php
index 28478b56..b89dc5b8 100644
--- a/app/Auth/Github.php
+++ b/app/Auth/Github.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Event\AuthEvent;
/**
@@ -85,7 +86,7 @@ class Github extends Base
* Get OAuth2 configured service
*
* @access public
- * @return KanboardCore\OAuth2
+ * @return Kanboard\Core\OAuth2
*/
public function getService()
{
diff --git a/app/Auth/Gitlab.php b/app/Auth/Gitlab.php
index 306a474d..8df3a5ec 100644
--- a/app/Auth/Gitlab.php
+++ b/app/Auth/Gitlab.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Event\AuthEvent;
/**
diff --git a/app/Auth/Google.php b/app/Auth/Google.php
index 76e65fb6..32bcb4b1 100644
--- a/app/Auth/Google.php
+++ b/app/Auth/Google.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Event\AuthEvent;
/**
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php
index 687762d3..c252be17 100644
--- a/app/Auth/Ldap.php
+++ b/app/Auth/Ldap.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Event\AuthEvent;
/**
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index bba2bda6..0290e36c 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Core\Request;
use Kanboard\Event\AuthEvent;
use Kanboard\Core\Security;
diff --git a/app/Auth/ReverseProxy.php b/app/Auth/ReverseProxy.php
index 6f998a34..abcdd449 100644
--- a/app/Auth/ReverseProxy.php
+++ b/app/Auth/ReverseProxy.php
@@ -2,6 +2,7 @@
namespace Kanboard\Auth;
+use Kanboard\Core\Base;
use Kanboard\Event\AuthEvent;
/**