Skip to content

Commit

Permalink
Fix admin service construction
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Oct 2, 2022
1 parent 539d8c6 commit 22b994a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions src/Admin/Model/GroupAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ abstract class GroupAdmin extends AbstractAdmin
{
private GroupManager $groupManager;

/**
* @phpstan-param GroupManager|class-string<GroupInterface> $class
*
* @param mixed $codeOrGroupManager
*/
public function __construct($codeOrGroupManager, string $class = null, string $baseControllerName = null, GroupManager $groupManager = null)
public function __construct(GroupManager $groupManager)
{
parent::__construct($codeOrGroupManager, $class, $baseControllerName);
parent::__construct();

$this->groupManager = $groupManager;
}
Expand Down
9 changes: 2 additions & 7 deletions src/Admin/Model/UserAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ abstract class UserAdmin extends AbstractAdmin
{
protected UserManager $userManager;

/**
* @phpstan-param UserManager|class-string<UserInterface> $class
*
* @param mixed $codeOrUserManager
*/
public function __construct($codeOrUserManager, string $class = null, string $baseControllerName = null, UserManager $userManager = null)
public function __construct(UserManager $userManager)
{
parent::__construct($codeOrUserManager, $class, $baseControllerName);
parent::__construct();

$this->userManager = $userManager;
}
Expand Down

0 comments on commit 22b994a

Please sign in to comment.