Skip to content

DataCollector for the symfony toolbar #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dbu opened this issue Aug 24, 2015 · 10 comments
Closed

DataCollector for the symfony toolbar #3

dbu opened this issue Aug 24, 2015 · 10 comments

Comments

@dbu
Copy link
Collaborator

dbu commented Aug 24, 2015

see also https://github.com/egeloen/IvoryHttpAdapterBundle/blob/master/DataCollector/IvoryHttpAdapterDataCollector.php and https://github.com/misd-service-development/guzzle-bundle/blob/master/DataCollector/GuzzleDataCollector.php

i think this will also need to use some tags to discover additional clients that are defined as service.

@joelwurtz
Copy link
Member

Can be done with a plugin i think, or a decorator if we don't want to depend on the plugin system

@dbu
Copy link
Collaborator Author

dbu commented Nov 6, 2015

i think using the plugin system is good. my idea for the bundle is that it helps with plugins anyways.

@sagikazarmark
Copy link
Member

With the History plugin this could easily be done. Another possibility is using AOP to catch all the HttpClient calls. It would be more generic and it would not require to add a plugin.

http://go.aopphp.com/

@dbu
Copy link
Collaborator Author

dbu commented Dec 19, 2015 via email

@joelwurtz
Copy link
Member

I was thinking some sort of StandalonePluginClient, which transform only one Plugin into an HttpClient / HttpAsyncClient (like the DataCollector thing will only add this with the HistoryPlugin to the actual HttpClient when in debug mode / toolbar activated)

@sagikazarmark
Copy link
Member

What if the http client itself is already a plugin client? Also, I think it is not generic: you might be able to create an http client service without httplug bundle.

Although I agree that AOP could have an impact on the application itself, not sure if the history plugin is generic enough. That said, I agree it would be much nicer.

What if the AOP solution is placed in a separate bundle? Like HttplugDebugBundle? That would only be enabled in development mode, so that the impact on the production application would be zero. Does that make any sense?

@dbu
Copy link
Collaborator Author

dbu commented Dec 22, 2015 via email

@sagikazarmark
Copy link
Member

Ok, I think this AOP thing is not top prio. It is rather something when you give a new game to the kid: he/she wants to play with it all the time. 😛

@sagikazarmark
Copy link
Member

Is this solved?

@dbu
Copy link
Collaborator Author

dbu commented Jan 10, 2016

fixed in #19

@dbu dbu closed this as completed Jan 10, 2016
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

No branches or pull requests

3 participants