Skip to content

Commit

Permalink
Added icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits van der Schee committed Mar 25, 2013
1 parent c9dc945 commit 81b3607
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright (c) LeaseWeb <http://github.com/LeaseWeb>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -109,11 +109,19 @@ use Lsw\ApiCallerBundle\Call\HttpGetJson;
class SomeController extends Controller
{
public function someAction()
{
{
...
$output = $this->get('api_caller')->call(new HttpGetJson($url, $parameters));
...
}
}

```

## License

This bundle is under the MIT license.

The "wall-socket" icon in the web debug toolbar is part of the Picas icon set (official website: http://www.picasicons.com).
The icon is licensed and may only be used to identifying the LswApiCallerBundle in the Symfony2 web debug toolbar.
All ownership and copyright of this icon remain the property of Rok Benedik.
10 changes: 5 additions & 5 deletions Resources/views/Collector/api.html.twig
Expand Up @@ -2,7 +2,7 @@

{% block toolbar %}
{% set icon %}
<img width="20" height="28" alt="API" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAcCAYAAABh2p9gAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wLDw87Hzx98kMAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAABe0lEQVRIx+2VzyvDcRjHX58vJs3XrySTiUkODhbNkFp+zLabC8pFJDf/AFGIFOXqoJYfB/MzF0mSgxLiIGtGidMK7bI2v7bmIpSNlDTNc3yenlfv593z9AiXy8VPRqwQIrKBEj8ckT+yMBgMwYj28M8BBXJFP6vrVlo1cW9puYqxtXVW5m0sLC0xM9qBLkUCuYpR2wA6ZTigSKLYksvVYYDKajWKd6WgZ5/htmYamzqZcNfS1VJA/FcKpWQtFrWDWesaD/o6chQhOgJuTnZdKHPTiP0cKJFSYibLuYH9cpetuzKMeR81CIUKfU02nvMbnkIt9hsvlVKTilObE6//nr1tL0NGDVang3tAyGX0Ti/yhJ/b42XG5i54JDM8UErTYSnKJL9nisUgICWQ+Ggif9KB/cXDwfY+DrzvuuWwCiXS9SbSd7ppGTnCCxCjomF8BHNBAvbL765NTAbl9RmcbTp5FRC4Zm/Lg9ZSiPL/ln8VKHw+X5S9gCh8o89GYm0IsAZIJwAAAABJRU5ErkJggg==" />
<img width="22" height="28" alt="API" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAcCAYAAABlL09dAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB90DGRcZFJB2DwQAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAACjUlEQVRIx+2Wz0tUURTHP/e+N/PGxpkMbGZcaLgIV46SgUIMtGhhWkKgtOhPEI0QA42YKPoLivZtConSCg3aBLWQdJY6gy2qhSk0pL4Z3xgz8+a2KKdm5jn9GFsEXXiLc+67X875nu+558L/9beXGB0ZkanNrZOmaXbZhUK+FjCllDjo92frffV39Y1PGw3m1uZzy8poQoiaI7UsixZXiyY7Ojt8IDQhBPv1BULBHik1bd/59XjqNF2hnLgCQNc0hJR7EUretlFKUU6hUkrpTqBKKYKhEH19ffh8PkfcQsEmFoux8HrBEVx3OnSooYGJyQnaw+GqKZ/u7+fm9RvMz89X7FXkKYTg3OAg7eEwiUSCy+NjFYd2/R6Ph4krkxhud5E+R2ClFLquM3R+CIDtdIqlpaUK4B/9B7xezg4MkMvl9gYuFGyOtrXhdrl349+jeKX+E5EItp2vFjGEgsGinc/n2E6nK2DL/YHAYQqFKlQIASnTLNrHuo4zNfUAgEzGIplMAhDu6OTho5nif6ZpVqiiBFhKjXh8uWgbhkGoqQnLshgfGyMSifBmZQWv10tjY2OxYIuLMfSyRpPlitjZ+czc7GyJprPZLOvr6wCsrq4W94QQ5PI5nj55jO5y/VzHU/fu0x4O09zcDIDf7+dqNEo6lS5qezf1O7duk/yYRJYV2bHzPqytcS0aZXh4mOC3YgYCQQKBIBnLImNZ5PM2M9PTPJudw+lW1J0aBOD923dcGr1YIfySwy4dKbVfA/5eSInbMP74hpOovzGYFPpX0lXVlH9zPCGklPqR1tadU729JJaX0aRWY5wKl+6iu6c7IV68euk2DCNa5/GcEVJmax3Otm3n4vH4hX/vXfEF9vYDLdA03HYAAAAASUVORK5CYII=" />
<span class="sf-toolbar-status{% if 5 < collector.callcount %} sf-toolbar-status-yellow{% endif %}">{{ collector.callcount }}</span>
{% if collector.callcount > 0 %}
<span class="sf-toolbar-info-piece-additional-detail">in {{ '%0.2f'|format(collector.time * 1000) }} ms</span>
Expand Down Expand Up @@ -31,7 +31,7 @@
{% block menu %}
<span class="label">
<span class="icon">
<span style="display:block; float: left; background-color: #3F3F3F; color: #F7F7F7; font-family: sans-serif; font-size: 15px; padding: 4px 4px 3px 4px; margin: 3px 15px;">API</span>
<img width="32" height="36" alt="API" src="data:image/png;base64,iVBORw0KGgoAAAANSUhE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WQINQV854AynTqut6Q84miuOdpqKEjGbPoZken4n8fQLP+CcviFjrPBHkzQOw0LgU0/21hQlXU0KFfTBCwmUr9avoNyW/CBR1Laux/zQAAAABJRU5ErkJggg==" />
</span>
<strong>CALLS</strong>
<span class="count">
Expand Down Expand Up @@ -62,10 +62,10 @@
<a href="data:text/plain;,{{ call.requestObject|url_encode(true) }}">parsed</a>
<br />
<strong>Response</strong>: {{ call.responseData|length }} bytes
<a href="data:text/plain;,{{ call.responseData|url_encode(true) }}">raw</a>
<a href="data:text/html;,{{ call.responseData|url_encode(true) }}">html</a>
<a href="data:text/plain;,{{ call.responseData|url_encode(true) }}">raw</a>
<a href="data:text/html;,{{ call.responseData|url_encode(true) }}">html</a>
<a href="data:text/plain;,{{ call.responseObject|url_encode(true) }}">parsed</a>
<br />
<br />
</div>
<small>
<strong>Time</strong>: {{ '%0.2f'|format(call.executionMS * 1000) }} ms
Expand Down

0 comments on commit 81b3607

Please sign in to comment.