ludofleury / guzzlebundle Goto Github PK
View Code? Open in Web Editor NEWDebug your API Calls with a Symfony web profiler for guzzle
Home Page: http://ludofleury.github.io/GuzzleBundle/
License: MIT License
Debug your API Calls with a Symfony web profiler for guzzle
Home Page: http://ludofleury.github.io/GuzzleBundle/
License: MIT License
First of all, I want to say that this bundle is really cool, I'm using it on a multitude of Symfony applications and it works great.
Recently I tried installing it on an application that does not live under a URL like http://domain.com/
, but instead lives under a URL like http://domain.com/myapp/
.
When installing the bundle, all the CSS, Javascript, image files etc. are copied in:
/public_html/myapp/web/bundles/playbloomguzzle
When you access the Profiler of myapp
, the HTTP requests that should get the resources for this bundle look like this (example):
GET /bundles/playbloomguzzle/css/profiler.min.css
This however results in a HTTP 404 error (for all resources, not just the one specified above).
The correct URL should be:
GET /myapp/bundles/playbloomguzzle/css/profiler.min.css
Notice the myapp
folder in the request. Since the application lives under http://domain.com/myapp/
, that folder should appear in the request, but it doesn't.
Screenshot that shows the problem:
Since the resources can not be retrieved, this is how the Guzzle
tab looks like:
So the information is there but... it's not really OK.
I don't how to solve this problem elegantly. Maybe determine the correct URL of the site and use that in the asset()
call in the templates found in Resources/views/Profiler
.
However I have no idea how to do that or if it's even possible, since I've never worked with Twig before.
Ideas ?
EDIT: This could be a Symfony bug ... some investigations necessary.
https://github.com/search?q=Guzzle+Bundle&ref=searchresults&type=Repositories
would be great if there could be some work to collaborate and build one GuzzleBundle instead of the current long list.
/cc @zachbadgett @ddeboer @thewilkybarkid @ludofleury @xamado
Could it be possible to tag a stable 1.0.0 version ? As there are no new developments since 4 months, I guess the bundle should be considered as stable or mature ?
Hi,
currently, the bundle supports the version 3.0 correctly.
@ludofleury Did you plan to support GuzzleHttp (aka Guzzle 4.*?)
Would be glad to help.
Thanks.
Here is how the set-cookie is displayed when there is more than one value :
(<strong>, </strong>
is showned in the profiler ).
In the response.html.twig, the value is displayed like that :
<td>
{{ value|join('<strong>, </strong>') }}
</td>
Should it be something like that ?
<td>
<strong>
{{ value|join('</strong>, <strong>')|raw }}
</strong>
</td>
Or does the strong should be removed ?
Hey there,
In your example under "Add the logger/profiler manually to a Guzzle client", I'm unable to get the service as symfony does not see it as exists. I'm using Symfony 2.3 and Guzzle 3.1.
You have requested a non-existent service "playbloom_guzzle.client.plugin.profiler".
The only steps I've taken was to add your bundle in (it seems to take that as I see the guzzle icon in the debug bar), and add the
playbloom_guzzle:
web_profiler: true
item into the config.
I'm attempting to do the manual wrap via
$loggerPlugin = $container->get('playbloom_guzzle.client.plugin.logger');
$client->addSubscriber($loggerPlugin);
If I do
php app/console container:debug --show-private | grep guzzle
I do not see the services defined at all even if I try manually including the services.xml file into my config.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.