@@ -18,6 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * instanciate |
| 21 | + * @return void |
|
| 21 | 22 | */ |
| 22 | 23 | public function __construct(); |
| 23 | 24 | |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | * |
| 18 | 18 | * @param RoutesInterface $routes |
| 19 | 19 | * @param RequestInterface $request |
| 20 | + * @return Router |
|
| 20 | 21 | */ |
| 21 | 22 | public function __construct(RoutesInterface $routes, RequestInterface $request); |
| 22 | 23 | |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Nymfonya\Component\Http\Interfaces; |
| 4 | 4 | |
| 5 | 5 | use Nymfonya\Component\Http\Interfaces\RequestInterface; |
| 6 | -use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 7 | 6 | use Nymfonya\Component\Http\Interfaces\RouteInterface; |
| 7 | +use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 8 | 8 | use Nymfonya\Component\Http\Router; |
| 9 | 9 | |
| 10 | 10 | interface RouterInterface |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Interfaces\RequestInterface; |
|
| 6 | 5 | use Nymfonya\Component\Http\Interfaces\HeadersInterface; |
| 6 | +use Nymfonya\Component\Http\Interfaces\RequestInterface; |
|
| 7 | 7 | use Nymfonya\Component\Http\Session; |
| 8 | 8 | |
| 9 | 9 | class Request extends Session implements RequestInterface |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 6 | -use Nymfonya\Component\Http\Interfaces\RouteInterface; |
|
| 7 | 5 | use Nymfonya\Component\Http\Interfaces\RequestInterface; |
| 6 | +use Nymfonya\Component\Http\Interfaces\RouteInterface; |
|
| 8 | 7 | use Nymfonya\Component\Http\Interfaces\RouterInterface; |
| 8 | +use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 9 | 9 | |
| 10 | 10 | class Router implements RouterInterface |
| 11 | 11 | { |