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

Commit

Permalink
Merge pull request #16 from mbessolov/master
Browse files Browse the repository at this point in the history
Added syntax highlighting in code samples
  • Loading branch information
CHH committed Apr 16, 2015
2 parents bfc9bcf + 1d08c58 commit bb2a44d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ accordingly. This class is insertable into a Middleware Stack Builder, like

Install with Composer:

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

## Example

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

```php
Expand All @@ -39,8 +41,8 @@ $map = [
];

$app = (new Stack\Builder())
->push('Stack\UrlMap', $map)
->resolve($app);
->push('Stack\UrlMap', $map)
->resolve($app);

$request = Request::createFromGlobals();

Expand Down

0 comments on commit bb2a44d

Please sign in to comment.