Skip to content

Commit

Permalink
Merge pull request #137 from takeuji/master-request-deprecated-fix
Browse files Browse the repository at this point in the history
Symfony5.3からdeprecatedなgetMasterRequestをgetMainRequestに変更
  • Loading branch information
chihiro-adachi authored Aug 31, 2022
2 parents d571d7b + 69fa3e3 commit 52ed04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EventListener/AuthorizationRequestResolveListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function getSubscribedEvents(): array
public function onAuthorizationRequestResolve(AuthorizationRequestResolveEvent $event): void
{
$user = $event->getUser();
$request = $this->requestStack->getMasterRequest();
$request = $this->requestStack->getMainRequest();

// システム管理者以外は承認しない
if (!$user instanceof Member || $user->getAuthority()->getId() !== Authority::ADMIN) {
Expand Down
2 changes: 1 addition & 1 deletion Service/WebHookService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function getSubscribedEvents()

public function fire(ResponseEvent $event)
{
if (!$event->isMasterRequest()) {
if (!$event->isMainRequest()) {
return;
}

Expand Down

0 comments on commit 52ed04d

Please sign in to comment.