Better method signatures for controller and auth.

Refs https://github.com/cakephp/cakephp/pull/3802