Monday, August 4, 2014

Improve consistency - Compatibility Breaks in CakePHP 3.0

In more than a few places compatibility was broken to create better cohesion
across CakePHP.
You can write the configuration as :

$obj->config();
$obj->config('engine');
$obj->config(['key' => 'value', 'key2' => 'value']);
$obj->config('key', 'value');

All classes that have settings can be interacted with via the same methods.
CakePHP provides these configuration features as a trait making it a snap to
have consistent methods in your plugins/application.

The old style callbacks are removed and now all framework callbacks are
provided through events.



--
View this message in context: http://cakephp.1045679.n5.nabble.com/Improve-consistency-Compatibility-Breaks-in-CakePHP-3-0-tp5719111.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: