CakePHP Cookbook 4.x
Upgrade Guide Fix Deprecation Warnings Upgrade to PHP 8.0 Use the Upgrade Tool Update CakePHP Dependency Application.php 4.0 Migration Guide Deprecated Features Removed Deprecations Breaking Changes 4.0 -> 4.1 upgrade. bin/cake upgrade rector --rules cakephp41Update CakePHP Dependency After applying rector refactorings, upgrade CakePHP and PHPUnit with the following composer commands: src/Locale to resources/locales. The cacert.pem file that was bundled in CakePHP has been replaced by a dependency on composer/ca-bundle [https://packagist.org/packages/composer/ca-bundle]. New Features Console 0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook Documentation 5.x
Upgrade Guide Fix Deprecation Warnings Upgrade to PHP 8.1 Use the Upgrade Tool Update CakePHP Dependency Update app files based upon latest app template 5.0 Migration Guide Deprecated Features Removed cakephp50bin/cake upgrade rector --rules chronos3 Update CakePHP Dependency After applying rector refactorings you need to upgrade CakePHP, its plugins, PHPUnit and maybe >paginate($query);. Core The function getTypeName() has been dropped. Use PHP’s get_debug_type() instead. The dependency on league/container was updated to 4.x. This will require the addition of typehints to your ServiceProvider 0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 4.x
php 32 Chapter 3. Migration Guides CakePHP Cookbook Documentation, Release 4.x Update CakePHP Dependency After applying rector refactorings, upgrade CakePHP and PHPUnit with the following composer commands: to resources/locales. • The cacert.pem file that was bundled in CakePHP has been replaced by a dependency on composer/ca-bundle31. New Features Console • Command classes can implement the defaultName() some breaking changes are necessary moving forward. They usually only affect tests. I18n • The dependency on Aura.Intl36 package has been removed as it is no longer maintained. If your app/plugin has custom0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook Documentation 5.x
cakephp50bin/cake upgrade rector --rules chronos3 Update CakePHP Dependency After applying rector refactorings you need to upgrade CakePHP, its plugins, PHPUnit and maybe Core • The function getTypeName() has been dropped. Use PHP’s get_debug_type() instead. • The dependency on league/container was updated to 4.x. This will require the addition of typehints to your ServiceProvider version your command line interface (CLI) uses. Installing Composer CakePHP uses Composer83, a dependency management tool, as the officially supported method for installation. • Installing Composer on 0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 3.x
direction parameter. Text::uuid() now uses random_int() with PHP 5.6 insted of mt_rand(). This adds a dependency on paragonie/random_compat which implements it for PHP 5.6. Validation The ‘empty’ field detection interface (CLI) uses. Installing Composer CakePHP uses Composer [https://getcomposer.org], a dependency management tool, as the officially supported method for installation. Installing Composer on Linux namespace by 'short name' $this->addPlugin('AcmeCorp/ContactManager'); // Load a dev dependency that will not exist in production builds. $this->addOptionalPlugin('AcmeCorp/ContactManager');0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 3.x
parameter. • Text::uuid() now uses random_int() with PHP 5.6 insted of mt_rand(). This adds a dependency on paragonie/random_compat which implements it for PHP 5.6. Validation • The ‘empty’ field detection version your command line interface (CLI) uses. Installing Composer CakePHP uses Composer95, a dependency management tool, as the officially supported method for installation. • Installing Composer on a vendor namespace by 'short name' $this->addPlugin('AcmeCorp/ContactManager'); // Load a dev dependency that will not exist in production builds. $this->addOptionalPlugin('AcmeCorp/ContactManager');0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 2.x
version your command line interface (CLI) PHP version is of. Installing Composer Composer is a dependency management tool for PHP 5.3+. It solves many of the problems the PEAR installer has, and simplifies Model, Controller, webroot and any other directories. Composer If you aren’t familiar with the dependency management tool named Composer, take the time to read the Composer documentation [https://getcomposer org/doc/00-intro.md]. To install the imaginary plugin ‘ContactManager’ through Composer, add it as dependency to your project’s composer.json: { "require": { "cakephp/contact-manager": "1.2.*"0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
version your command line interface (CLI) PHP version is of. Installing Composer Composer is a dependency management tool for PHP 5.3+. It solves many of the problems the PEAR installer has, and simplifies with the dependency management tool named Composer, take the time to read the Composer documentation102. To install the imaginary plugin ‘ContactManager’ through Composer, add it as dependency to your Choose a semantically meaningful name for the package name. This should ideally be prefixed with the dependency, in this case “cakephp” as the framework. The vendor name will usually be your GitHub username0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1