Giter Club home page Giter Club logo

guzzlebundle's People

Contributors

agallou avatar benoitleveque avatar bitdeli-chef avatar dzunke avatar geoffreytran avatar gigablah avatar ludofleury avatar nicodemuz avatar nyholm avatar pschultz avatar srogier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

guzzlebundle's Issues

[CRITICAL] Assets can not be retrieved when site is not in domain root

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:

playbloom bug 404

Since the resources can not be retrieved, this is how the Guzzle tab looks like:

playbloom bug

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.

Tag a stable version

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 ?

"<strong>" appears in response tab

Here is how the set-cookie is displayed when there is more than one value :

profiler - 2013-12-18_09 01 50

(<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 ?

Cannot access playbloom_guzzle.client.plugin.*

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.