doctrine / DoctrineModule

Doctrine Module for Laminas
http://www.doctrine-project.org/projects/doctrine-module.html
MIT License
398 stars 270 forks source link

Current CLI implementation triggers api-tools-mvc-auth events #802

Closed tems99 closed 10 months ago

tems99 commented 1 year ago

Hi,

I am currently using laminas-api-tools with api-tools-mvc-auth. The events in mvc-auth get triggered even for generating proxies. Because the events are triggered, database related code would also be triggered int the case of OAuth2. This then prevents builds like in Docker environments when generating proxies for production.

driehle commented 1 year ago

Could you please provide more details on your setup? What command are you running and what is the output?

Technically, api-tools-mvc-auths checks if it runs in a HttpRequest in its boostrapping:

https://github.com/laminas-api-tools/api-tools-mvc-auth/blob/1.8.x/src/Module.php#L79

driehle commented 10 months ago

Closing for lack of response. Feel free to re-open, in case the issue persists.