Skip to content

Remove doctrine event subscriber when not used#219

Merged
julienbourdeau merged 1 commit into
algolia:masterfrom
ogizanagi:remove_doctrine_subscriber
Mar 22, 2018
Merged

Remove doctrine event subscriber when not used#219
julienbourdeau merged 1 commit into
algolia:masterfrom
ogizanagi:remove_doctrine_subscriber

Conversation

@ogizanagi
Copy link
Copy Markdown
Contributor

Same as in #218: despite I'm not subscribing to doctrine events right now, accessing the entity manager will instantiate the client uselessly. So removing the subscriber when configured explicitly to not listen anything makes sense.

Also the parameter algolia_search.doctrineSubscribedEvents isn't really useful and isn't the common practice to set service definition arguments based on configuration (the parameter will remains accessible on userland).

@julienbourdeau
Copy link
Copy Markdown
Contributor

That works very well! Thanks for your contribution :)

Feel free to open more pull request 🥇

@julienbourdeau julienbourdeau merged commit 850bc5c into algolia:master Mar 22, 2018
@ogizanagi ogizanagi deleted the remove_doctrine_subscriber branch March 22, 2018 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants