Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #27 from csarrazi/deprecate-cache-service
Browse files Browse the repository at this point in the history
Added a simpler way to configure the cache subscriber
  • Loading branch information
csarrazi committed Jun 4, 2015
2 parents b91e857 + 145deac commit 231145c
Show file tree
Hide file tree
Showing 15 changed files with 800 additions and 305 deletions.
62 changes: 37 additions & 25 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
UPGRADE documentation
=====================

* Upgrade [from 1.0 to 1.1](UPGRADE-1.1.md)
* Upgrade [from 1.1 to 1.2](UPGRADE-1.2.md)
* Upgrade [from 1.2 to 1.3](UPGRADE-1.3.md)
* Upgrade [from 1.0 to 1.1](#upgrade-from-10-to-11)
* Upgrade [from 1.1 to 1.2](#upgrade-from-11-to-12)
* Upgrade [from 1.2 to 1.3](#upgrade-from-12-to-13)
* Upgrade [from 1.x to 2.0](#upgrade-from-1x-to-20)

UPGRADE FROM 1.0 to 1.1 [from 1.0 to 1.1]
-----------------------------------------
UPGRADE FROM 1.0 to 1.1
-----------------------

### Known Backwards-Compatibility Breaks

Expand Down Expand Up @@ -41,36 +42,47 @@ After:
</container>
```

UPGRADE FROM 1.1 to 1.2 [from 1.1 to 1.2]
-----------------------------------------
UPGRADE FROM 1.1 to 1.2
-----------------------

### Known Backwards-Compatibility Breaks

* None yet
* None yet.

UPGRADE FROM 1.2 to 1.3 [from 1.2 to 1.3]
-----------------------------------------
UPGRADE FROM 1.2 to 1.3
-----------------------

### Known Backward-Compatibility Breaks

* `ClientFactory` was deprecated in favor of directly tagging Guzzle clients,
and will be removed in 2.0.

Before:
Before:

```xml
<service
id="acme.client"
class="%acme.client.class%"
factory-service="csa_guzzle.client_factory"
factory-method="create">
<!-- An array of configuration values -->
</service>
```

After:

```xml
<service
id="acme.client"
class="%acme.client.class%"
factory-service="csa_guzzle.client_factory"
factory-method="create">
<!-- An array of configuration values -->
</service>
```
```xml
<service id="acme.client" class="%acme.client.class%">
<tag name="csa_guzzle.client" />
</service>
```

After:
UPGRADE FROM 1.x to 2.0
-----------------------

### Known Backwards-Compatibility Breaks

```xml
<service id="acme.client" class="%acme.client.class%">
<tag name="csa_guzzle.client" />
</service>
* `ClientFactory` is removed.
* The bundle now needs at least version `6.0` of `guzzlehttp/guzzle`.
* Client and cache configuration have been simplified.
* PHP version requirement has been bumped to at least `5.5.0`.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"require": {
"php": ">=5.4.0",
"guzzlehttp/guzzle": "~4.0 | ~5.0",
"guzzlehttp/guzzle": "~4.0|~5.0",
"guzzlehttp/log-subscriber": "~1.0",
"symfony/framework-bundle": "~2.3|~3.0",
"twig/twig": "~1.12",
Expand Down
Loading

0 comments on commit 231145c

Please sign in to comment.