Skip to content

Commit 0a8dff5

Browse files
authored
Merge pull request #22 from stein189/v2.0.0
Update README.md
2 parents 1967a43 + a46df0e commit 0a8dff5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,17 @@ $router->add('/hello/{a:name}/{?:lastname}', 'GET', function($name, $lastname =
197197
```
198198

199199
<h2>Upgrading from v0.x/v1.x to v2.x</h2>
200-
$router->setNamespace() has been removed!
201200

202-
In version 2 the router does not execute the callable anymore. From now one it is your responsibility to execute the handler.
203-
204-
At the bottom of the section 'Usage' there is an example how to execute the handler.
201+
- Namespace has changed from ``\Szenis`` to ``\Szenis\Routing``
202+
- ``$router->setNamespace()`` has been removed!
203+
- RouteResolver shouldnt be used to resolve routes, use the following instead ``$router->resolve($uri, $method);``
204+
- Router does not execute the route anymore. From now one it is your responsibility to execute the handler. At the bottom of the section 'Usage' there is an example how to execute the handler.
205205

206206
<h2>Changelog</h2>
207207

208208
<b>v2.0.0</b>
209209
- Removed 'default' namespace
210-
- Changed namespace from /Szenis to /Szenis/Routing
210+
- Changed namespace from \Szenis to \Szenis\Routing
211211
- Router does not execute the callable itself, this gives you more control over parameter injection
212212
- RouteResolver is callable trough the router
213213
- Bugfix: it is now possible to have more then one parameter in one segment (/{parameter1}-{parameter2}/)

0 commit comments

Comments
 (0)