src/AuthorizationChecker.php
public function verify(AuthorizeActionInterface $action): void
    {
        $user = $this->userProvider->getUser();

        if (!$this->verifier->supports($action, $user)) {
            throw new ActionNotSupportedException(sprintf(
                'The verifier not support verify the action "%s" with user "%s".',
                get_class($action),
                get_class($user)
            ));
        }

        $this->verifier->verify($action, $user);
    }
public function verify(AuthorizeActionInterface $action): void
    {
        $user = $this->userProvider->getUser();

        if (!$this->verifier->supports($action, $user)) {
            throw new ActionNotSupportedException(sprintf(
                'The verifier not support verify the action "%s" with user "%s".',
                get_class($action),
                get_class($user)
            ));
        }

        $this->verifier->verify($action, $user);
    }
{@inheritdoc}