mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
[ticket/11700] namespacify phpbb_permissions class
PHPBB3-11700
This commit is contained in:
parent
3634ff14a0
commit
570b83b046
1 changed files with 15 additions and 13 deletions
|
@ -7,6 +7,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace phpbb;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DO NOT CHANGE
|
* DO NOT CHANGE
|
||||||
*/
|
*/
|
||||||
|
@ -15,28 +17,28 @@ if (!defined('IN_PHPBB'))
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
class phpbb_permissions
|
class permissions
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Event dispatcher object
|
* Event dispatcher object
|
||||||
* @var phpbb_event_dispatcher
|
* @var \phpbb\event\dispatcher
|
||||||
*/
|
*/
|
||||||
protected $dispatcher;
|
protected $dispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User object
|
* User object
|
||||||
* @var phpbb_user
|
* @var \phpbb\user
|
||||||
*/
|
*/
|
||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param phpbb_event_dispatcher $phpbb_dispatcher Event dispatcher
|
* @param \phpbb\event\dispatcher $phpbb_dispatcher Event dispatcher
|
||||||
* @param phpbb_user $user User Object
|
* @param \phpbb\user $user User Object
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
public function __construct(phpbb_event_dispatcher $phpbb_dispatcher, phpbb_user $user)
|
public function __construct(\phpbb\event\dispatcher $phpbb_dispatcher, \phpbb\user $user)
|
||||||
{
|
{
|
||||||
$this->dispatcher = $phpbb_dispatcher;
|
$this->dispatcher = $phpbb_dispatcher;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
|
|
Loading…
Add table
Reference in a new issue