Closed WeeSee closed 2 years ago
di container
// helpers
$di->set(Helper\AuthHelper::class);
$di->set(Helper\GravatarHelper::class);
$di->set(Helper\SecurityHelper::class);
$di->set(Helper\TimezoneHelper::class);
https://github.com/2amigos/yii2-usuario/blob/master/src/User/Bootstrap.php#L93
In this line
https://github.com/2amigos/yii2-usuario/blob/master/src/User/Controller/AdminController.php#L294
there is an instance of class
UserBlockService
created with three parameters ´$user, $event, $this´.But in the constructor of the class
UserBlockService
https://github.com/2amigos/yii2-usuario/blob/504e18c855be619f2e4812f06f43a824370644f6/src/User/Service/UserBlockService.php#L27
four parameters are required. Where does
$securityHelper
get it's value from?How does this work?