Merge pull request #324 from nextcloud/backport-323

Explicitly type $userManager
This commit is contained in:
Morris Jobke 2017-01-20 11:00:10 -06:00 committed by GitHub
commit 4b332ed93e

View File

@ -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;
}