Skip to content

Authorization 1.1.0

Choose a tag to compare

@markstory markstory released this 02 Feb 19:18
1.1.0

New Features

  • The argument to authorize() can now be a scalar value. This enables
    the creation of resolvers that don't require an object.
  • Policies can now return Authorization\Policy\Result instead of just
    a boolean. This new object allows an additional reason code to be
    supplied for when authorization is denied.
  • Authorization\Exception\ForbiddenException::getResult() was added.
  • Authorization\Policy\RequestPolicyInterface was added. It defines
    an interface for doing access checks based on the request object.