Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaszak committed Apr 11, 2016
1 parent 504013e commit 2e077b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ $matcher->match(null, '/custom/request', 'GET');
new Host([string $baseQuery]);
```
Class provides current request and http method. Argument *$baseQuery* defines folder via site is avilable e.g.:
```http://localhost/~user/ => $baseQuery = /~user``` (without slash on end).
```http://localhost/~user/ => $baseQuery = /~user``` (without trailing slash).

#### Get response
```php
Expand Down Expand Up @@ -242,11 +242,9 @@ use Ignaszak\Router\UrlGenerator;
$route = Route::start();
/* Define routes */

$matcher = new Matcher($route);
/* Match routes */

$host = new Host();

$matcher = new Matcher($route);
$response = new Response($matcher->match($host));

// UrlGenerator
Expand Down

0 comments on commit 2e077b7

Please sign in to comment.