Upgrading from 7.0 to 7.1

Summary

The changes you need to port into your project when moving from Dotkernel API 7.0 to 7.1, each linked to the pull request that introduced it. The headline items are the new PHP 8.3 minimum, the upgrade to mezzio-authentication-oauth2 3.x, and the schema change to the admin login log.

Details

You can find the release notes in 7.1.0 and a complete list in Changelog

Important updates

These changes affect your PHP version, dependencies, configuration, database schema, entities or runtime behavior.

Optional updates

These changes cover development tooling, CI and documentation. Skipping them does not affect how the API runs.

FAQ

Q: Is there an automated upgrade from 7.0 to 7.1?

A: No. You implement each listed change manually in your own project. See Upgrades for the recommended procedure.

Q: Which PHP versions does 7.1 support?

A: PHP 8.3, 8.4 and 8.5. PHP 8.2 is no longer supported; raise the php constraint in your composer.json before updating.

Q: Do I need a database migration?

A: Yes, if your project has the AdminLogin entity from 7.0. Pull request 513 removes five columns and adds isCrawler. Review it and generate a migration before touching production data.

Q: Where did mail.global.php go?

A: Pull request 499 removes it, and pull request 511 makes the post-install script copy the dot-mail distribution file to config/autoload/mail.local.php (and mail.local.php.dist). The script skips files that already exist, so move your mail settings into mail.local.php yourself.

Q: Do I have to regenerate my OAuth2 keys?

A: No. The new bin/generate-oauth2-keys.php from pull request 506 only generates keys when data/oauth/encryption.key, private.key or public.key is missing. Test your authentication flow after upgrading to mezzio-authentication-oauth2 3.x (pull request 511).

Q: Do I have to apply the optional updates?

A: No. They only concern tooling, CI and documentation.

Q: Where do I find the complete list of changes?

A: In the 7.1.0 release notes and the project CHANGELOG.md.

On this page