Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 1.96 KB

UPGRADE.md

File metadata and controls

33 lines (27 loc) · 1.96 KB

Upgrade to 1.2.6

  • The column default in table user_role was renamed to is_default to avoid problems with the colliding SQL keyword DEFAULT #113 #104
  • Methods BjyAuthorize\Controller\Plugin\IsAllowed#getAuthorizeService, BjyAuthorize\Controller\Plugin\IsAllowed#setAuthorizeService, BjyAuthorize\View\Helper\IsAllowed#getAuthorizeService, BjyAuthorize\View\Helper\IsAllowed#setAuthorizeService were removed #127 #94

Upgrade to 1.2.0

  • Zend Developer Tools integration
  • Better Doctrine ORM support
  • Compatibility with any Doctrine ObjectManager (MongoDB ODM, PHPCR ODM, OrientDB ODM, etc.)
  • The new BjyAuthorize\View\RedirectionStrategy to redirect on unauthorized access

Following changes are required to upgrade:

  • The BjyAuthorize\Provider\Role\Doctrine provider was removed, use the BjyAuthorize\Provider\Role\ObjectRepositoryProvider as described in the documentation instead
  • The BjyAuthorize\Provider\Identity\AuthenticationDoctrineEntity provider was removed, use the simpler BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider instead
  • The BjyAuthorize\Provider\Identity\ZfcUserDoctrine provider was removed, use the simpler BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider instead
  • Following methods were removed from the BjyAuthorize\Provider\Identity\ProviderInterface:
    • getDefaultRole
    • setDefaultRole

Users who cannot upgrade now should lock their version of BjyAuthorize to 1.1.*.