mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
Merge pull request #323 from alantygel/patch-1
Explicitly type $userManager
This commit is contained in:
@@ -48,12 +48,13 @@ The hook logic should be in a separate class that is being registered in the :do
|
||||
|
||||
<?php
|
||||
namespace OCA\MyApp\Hooks;
|
||||
use OCP\IUserManager;
|
||||
|
||||
class UserHooks {
|
||||
|
||||
private $userManager;
|
||||
|
||||
public function __construct($userManager){
|
||||
public function __construct(IUserManager $userManager){
|
||||
$this->userManager = $userManager;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user