diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8b604ead..b5fd9db9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,17 +23,21 @@ CHANGELOG
Before:
- ```
+ ```yaml
article_edit:
pattern: /article/{id}
requirements: { '_method': 'POST|PUT', '_scheme': 'https', 'id': '\d+' }
+ ```
+ ```xml
POST|PUT
https
\d+
+ ```
+ ```php
$route = new Route();
$route->setPattern('/article/{id}');
$route->setRequirement('_method', 'POST|PUT');
@@ -42,17 +46,21 @@ CHANGELOG
After:
- ```
+ ```yaml
article_edit:
path: /article/{id}
methods: [POST, PUT]
schemes: https
requirements: { 'id': '\d+' }
+ ```
+ ```xml
\d+
+ ```
+ ```php
$route = new Route();
$route->setPath('/article/{id}');
$route->setMethods(array('POST', 'PUT'));
@@ -66,7 +74,7 @@ CHANGELOG
Before:
- ```
+ ```php
$rootCollection = new RouteCollection();
$subCollection = new RouteCollection();
$rootCollection->addCollection($subCollection);
@@ -75,7 +83,7 @@ CHANGELOG
After:
- ```
+ ```php
$rootCollection = new RouteCollection();
$subCollection = new RouteCollection();
$subCollection->add('foo', new Route('/foo'));
@@ -85,8 +93,8 @@ CHANGELOG
Also one must call `addCollection` from the bottom to the top hierarchy.
So the correct sequence is the following (and not the reverse):
- ```
- $childCollection->->addCollection($grandchildCollection);
+ ```php
+ $childCollection->addCollection($grandchildCollection);
$rootCollection->addCollection($childCollection);
```
@@ -112,7 +120,7 @@ CHANGELOG
use-case instead.
Before: `$parentCollection->addCollection($collection, '/prefix', array(...), array(...))`
After:
- ```
+ ```php
$collection->addPrefix('/prefix', array(...), array(...));
$parentCollection->addCollection($collection);
```
@@ -164,6 +172,6 @@ CHANGELOG
been used anyway without creating inconsistencies
* [BC BREAK] RouteCollection::remove also removes a route from parent
collections (not only from its children)
- * added ConfigurableRequirementsInterface that allows to disable exceptions
+ * added ConfigurableRequirementsInterface that allows to disable exceptions
(and generate empty URLs instead) when generating a route with an invalid
parameter value