Open disasterdrop opened 8 years ago
same problem here i updated 23/07
how u use $serviceManager
@Iraecio
You can access the Service Manager over the MvcEvent with:
$serviceManager = $e->getApplication()->getServiceManager();
This repository has been closed and moved to laminas-api-tools/api-tools-skeleton; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-skeleton/issues/10.
Hi,
i have updated Apigility today and run in to this behaviour:
The oauth2 authentication rules did not work and everything was outside of authentication and served without checking if user has right Authorization header set.
What i found was that, whe i change this code in module/Application/Module.php
to
everything is working again. Was it intended to change it manually, so that you could use your own AuthListener or was it removed for ZF3 purpose?
I'm curious why nobody else was running into this... And if it's not a bug, is it a valid approach to use the MvcAuthEvent like this?