Cakephp: 3.4 Event / Migration Docs

Created on 5 Jan 2017  路  4Comments  路  Source: cakephp/cakephp

Question/Feedback about the 3.4 Migration Guide

Did class Event really gain setData() / setResult() and data() / result() instead of getData() / getResult() ?

Ref: https://book.cakephp.org/3.next/en/appendices/3-4-migration-guide.html#event

documentation

Most helpful comment

Looks like the docs are wrong. I'll get that fixed.

All 4 comments

Looks like the docs are wrong. I'll get that fixed.

It seems more like the getters are named wrong in the source. Shouldn't it be getResult and getData for
https://github.com/cakephp/cakephp/blob/3.next/src/Event/Event.php#L169
https://github.com/cakephp/cakephp/blob/3.next/src/Event/Event.php#L194
(data() would need to be aliased for BC)?

I see what you're getting at now. We should rename those functions then as they don't match the newer conventions.

Code updated now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saeideng picture saeideng  路  3Comments

berarma picture berarma  路  3Comments

GBeushausen picture GBeushausen  路  3Comments

Erwane picture Erwane  路  3Comments

Code-Working picture Code-Working  路  3Comments