Skip to content

Commit

Permalink
added doc info; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Preusner committed Nov 29, 2014
1 parent 61821e9 commit 5fdb7f9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Symfony GuzzleBundle [![Latest Stable Version](https://poser.pugx.org/eightpoints/guzzle-bundle/v/stable.png)](https://packagist.org/packages/eightpoints/guzzle-bundle) [![Total Downloads](https://poser.pugx.org/eightpoints/guzzle-bundle/downloads.png)](https://packagist.org/packages/eightpoints/guzzle-bundle) [![License](https://poser.pugx.org/eightpoints/guzzle-bundle/license.svg)](https://packagist.org/packages/eightpoints/guzzle-bundle)
====================
# Symfony GuzzleBundle [![Latest Stable Version](https://poser.pugx.org/eightpoints/guzzle-bundle/v/stable.png)](https://packagist.org/packages/eightpoints/guzzle-bundle) [![Total Downloads](https://poser.pugx.org/eightpoints/guzzle-bundle/downloads.png)](https://packagist.org/packages/eightpoints/guzzle-bundle) [![License](https://poser.pugx.org/eightpoints/guzzle-bundle/license.svg)](https://packagist.org/packages/eightpoints/guzzle-bundle)
[![knpbundles.com](http://knpbundles.com/8p/GuzzleBundle/badge)](http://knpbundles.com/8p/GuzzleBundle)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/5cf56080-9357-49a3-83b2-a3dd20a8a590/big.png)](https://insight.sensiolabs.com/projects/5cf56080-9357-49a3-83b2-a3dd20a8a590)

Expand All @@ -8,15 +7,13 @@ It comes with a WSSE Auth Plugin that can be used optionally.

GuzzleBundle follows semantic versioning. Read more on [semver.org][2].

Requirements
------------
## Requirements
- PHP 5.4 or above
- Guzzle PHP Framework
- [WSSE Auth Plugin][3]
- [Guzzle PHP Framework][1] (included by composer)
- [WSSE Auth Plugin][3] (included by composer)


Installation
------------
## Installation
To install this bundle, run the command below and you will get the latest version by [Packagist][4].

``` bash
Expand All @@ -34,8 +31,7 @@ To use the newest (maybe unstable) version please add following into your compos
```


Usage
-----
## Usage
Load bundle in AppKernel.php:
``` php
new EightPoints\Bundle\GuzzleBundle\GuzzleBundle()
Expand Down Expand Up @@ -64,9 +60,14 @@ $client = $this->get('guzzle.client');
$response = $client->get('/users')->send();
```

Suggestions
-----------

## Features
### Symfony Debug Toolbar / Profiler
![Debug Logs](/Resources/doc/debug_logs.png "Symfony Debug Toolbar - Guzzle Logs")



## Suggestions
Adding aliases:
If you want to use different names for provided services you can use aliases. This is a good idea if you don't want
have any dependency to guzzle in your service name.
Expand All @@ -77,16 +78,14 @@ services:
```
Authors
-------
## Authors
- Florian Preusner ([Twitter][5])
See also the list of [contributors][6] who participated in this project.
License
-------
This bundle is licensed under the MIT License - see the LICENSE file for details
## License
This bundle is released under the [MIT license](Resources/meta/LICENSE)
[1]: http://guzzlephp.org/
Expand Down
10 changes: 5 additions & 5 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
<parameter key="guzzle.data_collector.class">EightPoints\Bundle\GuzzleBundle\DataCollector\HttpDataCollector</parameter>
<parameter key="guzzle.logger.class">EightPoints\Bundle\GuzzleBundle\Log\Logger</parameter>

<parameter key="guzzle.plugin.header.headers" type="collection"></parameter>
<parameter key="guzzle.plugin.wsse.username"></parameter>
<parameter key="guzzle.plugin.wsse.password"></parameter>
<parameter key="guzzle.plugin.header.headers" type="collection" />
<parameter key="guzzle.plugin.wsse.username" />
<parameter key="guzzle.plugin.wsse.password" />
</parameters>

<services>
<!-- Main -->
<service id="guzzle.emitter" class="%guzzle.emitter.class%">
<call method="attach">
<argument type="service" id="guzzle.logger.subscriber"></argument>
<argument type="service" id="guzzle.logger.subscriber" />
</call>
</service>
<service id="guzzle.client" class="%guzzle.http_client.class%">
<argument type="collection">
<argument key="base_url" type="string" id="guzzle.base_url">%guzzle.base_url%</argument>
<argument key="emitter" type="service" id="guzzle.emitter"></argument>
<argument key="emitter" type="service" id="guzzle.emitter" />
</argument>
</service>
<service id="guzzle.plugin.header" class="%guzzle.plugin.header.class%">
Expand Down
File renamed without changes.

0 comments on commit 5fdb7f9

Please sign in to comment.