Skip to content

Commit

Permalink
replace __construct to beforeDispatchLoop into Access Authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbadxiii committed Mar 16, 2023
1 parent af4cea9 commit db659db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Access/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class Authenticate extends Injectable implements AuthenticatesRequestInterface
*/
protected string $actionName;


public function __construct()
/**
* @return void
*/
public function beforeDispatchLoop(Event $event, Dispatcher $dispatcher)
{
if (!empty($this->accessList)) {
$this->getDI()->get("auth")->addAccessList($this->accessList);
Expand Down

0 comments on commit db659db

Please sign in to comment.