Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.98 KB

UPGRADE.md

File metadata and controls

42 lines (24 loc) · 1.98 KB

Upgrade

Here you will find upgrade steps between major releases.

From 1.x to 2.x

PSR-7/17 HTTP transport implementation

The bundle removed a direct dependency on the zendframework/zend-diactoros package. You now need to explicitly install a PSR 7/17 implementation. We recommand that you use nyholm/psr7. Check out this document if you wish to use a different implementation.

Scope resolving changes

Previously documented client scope inheriting and restricting is now the new default behavior. You can safely remove the listener from your project.

SQL schema changes

The bundle adds new tables and constraints to the existing schema. You will need to run the Doctrine schema update process to sync the changes:

bin/console doctrine:schema:update

The schema changes include:

  • New oauth2_authorization_code table for storing authorization codes
  • access_token field on the oauth2_refresh_token table is now nullable

Interface changes

The following interfaces have been changed:

Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface

Trikoder\Bundle\OAuth2Bundle\Manager\AccessTokenManagerInterface

Trikoder\Bundle\OAuth2Bundle\Manager\RefreshTokenManagerInterface