src/Http/Middleware/AuthorizesRequests.php
protected function authorize(
        InboundRequestInterface $request,
        StoreInterface $store,
        AuthorizerInterface $authorizer
    ) {
        $result = $this->checkAuthorization($request, $store, $authorizer);

        if (true !== $result) {
            throw new AuthorizationException($result);
        }
    }
protected function authorize(
        InboundRequestInterface $request,
        StoreInterface $store,
        AuthorizerInterface $authorizer
    ) {
        $result = $this->checkAuthorization($request, $store, $authorizer);

        if (true !== $result) {
            throw new AuthorizationException($result);
        }
    }
protected function authorize ( InboundRequestInterface $ request , StoreInterface $ store , AuthorizerInterface $ authorizer ) { $ result = $ this -> checkAuthorization ( $ request , $ store , $ authorizer ) ; if ( true !== $ result ) { throw new AuthorizationException ( $ result ) ; } }
Authorize the request or throw an exception

@param InboundRequestInterface $request
@param StoreInterface $store
@param AuthorizerInterface $authorizer
@throws AuthorizationException
Authorize the request or throw an exception