Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.34 KB

UPGRADE-4.0.md

File metadata and controls

29 lines (21 loc) · 1.34 KB

UPGRADE FROM 3.X to 4.0

Supported Versions

  • Minimum Symfony versions have been bumped to ^5.4|^6.0.
  • Minimum PHP version has been bumped to ^8.0

AtlassianRestClient

  • Service can be fetched with AtlassianRestClientInterface or atlassian_rest_client.
  • Use dependency injection to fetch the client as the constructor signature has been changed.
  • symfony/http-client is used instead of guzzle. If you catch any guzzle exceptions, replace them.

TenantInterface

isWhiteListed and getClientKey has been added to the TenantInterface

Configuration

  • The prod and dev key have been deprecated. Use the descriptor key instead to define the descriptor configuration. If you wish to override something in a specific environment. Use the config/packages/{env}/atlassian-connect.json. The descriptor configuration has some basic validation to match the descriptor json schema.
  • When importing routes to you configuration file, point to @AtlassianConnectBundle/Resources/config/routing.php instead of @AtlassianConnectBundle/Resources/config/routing.yml

Services

  • Only the AtlassianRestClientInterface is public. All other services have been made private. Be sure to use Dependency injection instead of fetching the service through the container.