Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit bb2a44d

Browse files
committed
Merge pull request #16 from mbessolov/master
Added syntax highlighting in code samples
2 parents bfc9bcf + 1d08c58 commit bb2a44d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ accordingly. This class is insertable into a Middleware Stack Builder, like
1010

1111
Install with Composer:
1212

13-
% curl -sS https://getcomposer.org/installer | php
14-
% php composer.phar require chh/url-map:~1.0@dev
13+
```bash
14+
$ curl -sS https://getcomposer.org/installer | php
15+
$ php composer.phar require chh/url-map:~1.0@dev
16+
```
1517

1618
## Example
1719

18-
Let's say we have a Silex app and want to map an blogging app which
20+
Let's say we have a Silex app and want to map a blogging app which
1921
implements HttpKernelInterface at the sub path `/blog`:
2022

2123
```php
@@ -39,8 +41,8 @@ $map = [
3941
];
4042

4143
$app = (new Stack\Builder())
42-
->push('Stack\UrlMap', $map)
43-
->resolve($app);
44+
->push('Stack\UrlMap', $map)
45+
->resolve($app);
4446

4547
$request = Request::createFromGlobals();
4648

0 commit comments

Comments
 (0)