Upgrading from version 1
Breaking changes
Breaking changes for Core
- Packages methods signature changed
Breaking changes for HttpCore
- Namespace
Berlioz\HttpCoremoved toBerlioz\Http\Core - Namespace
Berlioz\Routermoved toBerlioz\Http\Router - Magic methods
_b_pre()and_b_post()of controllers are removed in favor of middlewares - Remove usage of PhpDoc annotations in favor of PHP 8 attributes, like routes annotations
- Method
AbstractController::getService()renamed toAbstractController::get() ErrorHandler
Breaking changes for CliCore
- Namespace
Berlioz\CliCoremoved toBerlioz\Cli\Core - Signature of
CommandInterfacechanged
Steps to upgrade
- Update versions into your composer.json
- Run command
composer update - Create a directory “resources” at root project directory
- Move directories “assets” and “templates” into new “resources” directory
- Update your webpack config if necessary
- Fixes breaking changes
- Update files “public/index.php” like WebsiteSkeleton (do not forget .htaccess file)