CakePHP Italia

La comunità italiana di CakePHP

CakePHP 3.3.4 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.4. This is a maintenance release for the 3.3 branch that fixes several community reported issues.

Bugfixes

You can expect the following changes in 3.3.4. See the changelog for every commit.

  • __xn, __dx and __dxn support variadic arguments now.
  • An incompatibility in Response::body(callable) & PSR7 stack was fixed.
  • Improved API docs resolving warnings in PHPStorm and other IDEs
  • Checkbox inputs now support the escape option.
  • Translations that result in '' no longer throws an exception.
  • EventManager::__debugInfo() is more accurate.
  • Fix notMatching() without query builder callback triggering an error.
  • Clean primary entity after Model.afterSaveCommit is triggered. Previously primary entity was being cleaned too early and callbacks for Model.afterSaveCommit were useless if one wanted to acccess original state.
  • The ErrorHandlerMiddleware now logs errors as ErrorHandler would.
  • Requests with an invalid HTTP protocol version no longer fatally error. Instead they return a 400 HTTP status code.
  • Redirect Routes now work as expected for applications in subdirectories using the PSR7 HTTP stack.
  • DispatchFilters now receive events when exceptions are rendered again.
  • Session regeration now works as expected with the database adapter, and PHP7+
  • Very large decimal values can now be used in database operations withouth losing precision now.

New Features

  • RouteBuilder::nameExists() was added. This method allows you to check the existence of named routes.
  • Collection:cartesianProduct() was added.
  • View::element() now supports plugin = false as an option to disable automatic plugin element rendering.
  • imageSize, imageHeight and imageWidth methods were added to Validation. These methods let you validate uploaded image file sizes without requiring additional extensions.
  • Improved API docs.

Contributors to 3.3.4

Thank you to all the contributors that helped make this release happen:

  • ADmad
  • Alexandros Solanos
  • Bryan Crowe
  • Cees-Jan Kiewiet
  • David Yell
  • Florian Krämer
  • Jad Bitar
  • Jose Diaz-Gonzalez
  • José Lorenzo Rodríguez
  • Mark Story
  • Mirko Pagliai
  • Pedro Tanaka
  • Thinking Media
  • chinpei215
  • hashmode
  • ndm2

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation. We'd also like to welcome @thinkingmedia to the CakePHP core team.

Continua a leggere

CakePHP 2.8.9 Released

The CakePHP core team is happy to announce the immediate availability of CakePHP 2.8.9. 2.8.9 is the last scheduled bugfix release for 2.8. Going forward, 2.8 will only receive security fixes.

Bugfixes

You can expect the following changes in 2.8.9. See the changelog for every commit.

  • Minor DocBlock improvements.
  • A change to CakeFixtureManager intended to optimize test suite runtimes was reverted. This change caused compatibility issues with existing applications.

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 2.8.8 Released

The CakePHP core team is happy to announce the immediate availability of CakePHP 2.8.8. This is a maintenance release for the 2.8 branch that fixes several community reported issues.

Bugfixes

You can expect the following changes in 2.8.8. See the changelog for every commit.

  • CakeTestCase::getMockForModel() no longer fails when when models interact with their data source in the constructor.
  • A regression in FormHelper related to security tokens and applications in sub-directories was fixed.

Contributors to 2.8.8

Thank you to all the contributors that helped make this release happen:

  • José Lorenzo Rodríguez
  • Mark Story

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 2.8.7 Released.

The CakePHP core team is happy to announce the immediate availability of CakePHP 2.8.7. This is a maintenance release for the 3.3 branch that fixes several community reported issues.

Bugfixes

You can expect the following changes in 2.8.7. See the changelog for every commit.

  • CakeRequest::header() can now read the Authorization header when it is set by fast-cgi.
  • TestShell now supports the --coverage-text option.
  • Folder::inPath() now only accepts absolute paths. It previously had ambiguous behavior when relative paths were used.
  • Mysql::insertMulti() now performs better, as all rows are inserted in one query.
  • FormHelper now generates security tokens correctly when AppHelper::url() injects parameters into generated URLs.

New Features

  • FormHelper::submit() now supports the confirm option.
  • Hash::sort() now supports sorting by the current locale.
  • CakeFixtureManager will only truncate tables if tables are not being dropped between test methods.

Contributors to 2.8.7

Thank you to all the contributors that helped make this release happen:

  • Kenya Yamaguchi
  • Marc Würth
  • Mark van Driel
  • Sebastien Barre
  • Val Bancer
  • mark_story
  • mscherer
  • ndm2
  • nojimage

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 3.3.3 released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.3. This is a maintenance release for the 3.3 branch that fixes several community reported issues.

Bugfixes

You can expect the following changes in 3.3.3. See the changelog for every commit.

  • HasMany::unlink() no longer emits errors when an empty list is provided.
  • The global event manager now tracks events when the local event manager does not have tracking enabled.
  • Selecting SQL computed fields in contained associations no longer emits warnings in PHP7
  • Redirect routes work correctly once again. Previously the beforeDispatch event was not stopped causing errors.
  • Folder::inPath() now only accepts absolute paths. It previously had ambiguous behavior when relative paths were used.
  • TestCase::getMockForModel() now ensures that generated mocks have the correct table name.
  • EntityTrait::clean() now resets the original value states.
  • Marshalling no longer marks unchanged null values as dirty.
  • Numeric column names are now correctly quoted when identifier quoting is enabled.

New Features

  • Improved API docs in the ORM and Database packages.
  • CakeTestSuiteEmailAssertTrait was added. This trait makes it easier to to write tests for Mailer classes.
  • Hash::sort() now supports sorting by the current locale.
  • FormHelper::create() now supports the templateVars option.

Contributors to 3.3.3

Thank you to all the contributors that helped make this release happen:

  • ADmad
  • Alexandros Solanos
  • Benjamin Tamási
  • Jad Bitar
  • Jeremy Harris
  • José Lorenzo Rodríguez
  • Mark Scherer
  • Mark Story
  • Nick Busey
  • Thinking Media
  • mscherer
  • ndm2

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 3.3.2 released

The CakePHP core team is happy to announce the immediate availability of CakePHP
3.3.2. This is a maintenance release for the 3.3 branch that fixes several
community reported issues.

Bugfixes

You can expect the following changes in 3.3.2. See the changelog for every commit.

  • Session cookies are now only sent by the PSR7 stack when the session is active.
  • Content-Type headers emitted from the PSR7 stack now include the charset.

Contributors to 3.3.2

Thank you to all the contributors that helped make this release happen:

  • Mark Story

As always, we would like to thank all the contributors that opened issues, opened pull requests or updated the documentation.

Continua a leggere

CakePHP 3.3.0-RC1 released

CakePHP 3.3.0-RC1 Released

The CakePHP core team is happy to announce the immediate availability of CakePHP 3.3.0-RC1. This is a release candidate for 3.3.0. 3.3.0 provides a number improvements both large and small to CakePHP. It also deprecates several features that will be removed in 4.0.0.

Upgrading to this Beta

You can use composer to upgrade to the RC version of CakePHP 3.3.0::

php composer.phar require "cakephp/cakephp:3.3.0-RC1"

What's new in 3.3.0?

The migration guide has a complete list of what's new in 3.3.0, and what has been deprecated. We recommend you give that page a read when upgrading.

Bugfixes and Minor Features

This release fixes a few issues identified in the 3.3.0-beta3, as well as the recent bugfixes from master as documented in the 3.2.13 release notes. In addition to those changes 3.3.0-RC1 contains:

  • CakeDatabaseTypeInterface was added. This interface formalizes an implied interface for database type classes. (@davidyell)
  • Middleware objects can be added by their string class name now. (@ADmad)
  • The Mcrypt backend for Security has been deprecated. (@antograssiot)
  • Content-Type headers are now transformed correctly between PSR7 and CakePHP request layers. (@dakota)
  • PHP7 now reports CLI errors with the original file/line number. (@Jippi)

If there are no major issues reported, we will release 3.3.0 stable next week.

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

Continua a leggere