Change Phalcon\Mvc\User\Plugin to Phalcon\Di\Injectable
This commit is contained in:
parent
d6aefc502b
commit
d03824518d
3 changed files with 7 additions and 7 deletions
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
namespace App\Listener;
|
namespace App\Listener;
|
||||||
|
|
||||||
use Phalcon\Events\Event,
|
use Phalcon\Di\Injectable,
|
||||||
|
Phalcon\Events\Event,
|
||||||
Phalcon\Mvc\Dispatcher,
|
Phalcon\Mvc\Dispatcher,
|
||||||
Phalcon\Mvc\User\Plugin,
|
|
||||||
Phalcon\Mvc\Dispatcher\Exception as DispatcherException;
|
Phalcon\Mvc\Dispatcher\Exception as DispatcherException;
|
||||||
|
|
||||||
use Httpcb\Acl;
|
use Httpcb\Acl;
|
||||||
|
|
||||||
class AccessListener extends Plugin
|
class AccessListener extends Injectable
|
||||||
{
|
{
|
||||||
protected $_ignored_resources = [
|
protected $_ignored_resources = [
|
||||||
'index',
|
'index',
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
namespace App\Listener;
|
namespace App\Listener;
|
||||||
|
|
||||||
use Phalcon\Mvc\User\Plugin,
|
use Phalcon\Di\Injectable,
|
||||||
Phalcon\Events\Event,
|
Phalcon\Events\Event,
|
||||||
App\Model\Data\User,
|
App\Model\Data\User,
|
||||||
App\Model\Data\ActivityLog as ActivityLogger,
|
App\Model\Data\ActivityLog as ActivityLogger,
|
||||||
Httpcb\OAuth\UserData\UserDataInterface as OAuthUserDataInterface,
|
Httpcb\OAuth\UserData\UserDataInterface as OAuthUserDataInterface,
|
||||||
Httpcb\Auth;
|
Httpcb\Auth;
|
||||||
|
|
||||||
class ActivityLog extends Plugin
|
class ActivityLog extends Injectable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ActivityLogger
|
* @var ActivityLogger
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace App\Listener;
|
||||||
|
|
||||||
use Exception,
|
use Exception,
|
||||||
Phalcon\Events\Event,
|
Phalcon\Events\Event,
|
||||||
Phalcon\Mvc\User\Plugin,
|
Phalcon\Di\Injectable,
|
||||||
Phalcon\Mvc\Dispatcher,
|
Phalcon\Mvc\Dispatcher,
|
||||||
Phalcon\Mvc\Dispatcher\Exception as DispatcherException;
|
Phalcon\Mvc\Dispatcher\Exception as DispatcherException;
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ use Exception,
|
||||||
* Plugin for forwarding user to 404 (not found) page
|
* Plugin for forwarding user to 404 (not found) page
|
||||||
* if a request could not be dispatched.
|
* if a request could not be dispatched.
|
||||||
*/
|
*/
|
||||||
class DispatchListener extends Plugin
|
class DispatchListener extends Injectable
|
||||||
{
|
{
|
||||||
protected $_route_notfound = array(
|
protected $_route_notfound = array(
|
||||||
'controller' => 'error',
|
'controller' => 'error',
|
||||||
|
|
|
||||||
Reference in a new issue