How does everyone feel about the use of option arrays in CakePHP? I personally prefer using OOP for setting options. In particular I can rely on my IDE to provide documentation as I code rather than having to search through documentation or vendor source code.
Here is an example of what I am talking about:
$service->loadAuthenticator('Authentication.Token', [
'queryParam' => 'token',
'header' => 'Authorization',
'tokenPrefix' => 'Token'
]);
versus
$service->loadAuthenticator(
(new AuthenicationToken())
->setQueryParam('token')
->setHeader('Authorization')
->setTokenPrefix('Token');
);