Skip to content

6.0 Ideas

Mark Story edited this page Mar 4, 2024 · 31 revisions

General

None

Cleanup

  • Remove default inflection of template names to underscored version in View.
  • Consolidate RoutingCollection::parse() and RoutingCollection::parseRequest() into a single method and also Route::parseRequest() and Router::parse(). URL parsing doesn't need the full request instance so consider passing only URL string or UriInterface instance to the parse methods.
  • Remove _ prefix from properties like $_accessible, $_hidden and methods like _getMyVirtualField().
  • Move global function aliases into a plugin that can be used by folks that need it. Related app issue
  • Check interface methods ( https://github.com/cakephp/cakephp/commit/6a8198139a169ed4b8ccd23dfbe58d3efae92716 )
  • Unify array structure for containing and marshalling associated data #17547

Collection

Console

  • Add ConsoleIoInterface. Having an interface in console commands would allow us to provide better stub implementations. This would require a rector rule.

Controller

Database

  • Add a CastExpression and automatically cast function expressions when the type is known. This will require making sure all our expression classes have a returnType like FunctionExpression does (https://github.com/cakephp/cakephp/issues/7534)

ORM

Testing

  • Use Mockery for all new tests which require mocking

Validation

View

  • Rename escapeTitle to escapeContent as this is not the attribute title, but the content of the link. The rest of the API is already consistent here, only this option is not.