mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #324 from nextcloud/backport-323
Explicitly type $userManager
This commit is contained in:
commit
4b332ed93e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user