1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/13713] Create abstract parent service for user source

PHPBB3-13713
This commit is contained in:
lavigor
2018-06-09 19:52:21 +03:00
committed by Marc Alexander
parent 52c2e11fdd
commit 52fac451a3
3 changed files with 25 additions and 32 deletions

View File

@@ -19,13 +19,13 @@ class friend extends user
protected $user;
/**
* Constructor
* Set the user service used to retrieve current user ID
*
* @param \phpbb\user $user
*/
public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user_loader $user_loader, \phpbb\user $user, $phpbb_root_path, $phpEx)
public function set_user(\phpbb\user $user)
{
$this->user = $user;
parent::__construct($db, $user_loader, $phpbb_root_path, $phpEx);
}
/**