@@ -46,7 +46,6 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * run app |
| 48 | 48 | * |
| 49 | - * @param array $routerGroups |
|
| 50 | 49 | * @return Kernel |
| 51 | 50 | */ |
| 52 | 51 | public function run(array $groups = []): Kernel |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Response; |
|
| 6 | 5 | use Nymfonya\Component\Http\Headers; |
| 6 | +use Nymfonya\Component\Http\Response; |
|
| 7 | 7 | |
| 8 | 8 | class Kernel |
| 9 | 9 | { |
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | * Run middleware around core function and pass an |
| 57 | 57 | * object through it |
| 58 | 58 | * |
| 59 | - * @param Container $container |
|
| 60 | 59 | * @param Closure $core |
| 61 | 60 | * @return mixed |
| 62 | 61 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * returns http param for a given key |
| 78 | 78 | * |
| 79 | - * @return array |
|
| 79 | + * @return string |
|
| 80 | 80 | */ |
| 81 | 81 | public function getParam(string $key): string |
| 82 | 82 | { |
@@ -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 |
@@ -216,7 +216,6 @@ |
||
| 216 | 216 | * invoke action from a controller an return exec code. |
| 217 | 217 | * for testing purpose return retValue if false |
| 218 | 218 | * |
| 219 | - * @param boolean $forceRetValue |
|
| 220 | 219 | * @return mixed |
| 221 | 220 | */ |
| 222 | 221 | protected function invokeAction(...$args) |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http\Reuse; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Kernel; |
|
| 5 | +use Monolog\Logger; |
|
| 6 | 6 | use Nymfonya\Component\Config; |
| 7 | 7 | use Nymfonya\Component\Container; |
| 8 | +use Nymfonya\Component\Http\Kernel; |
|
| 9 | +use Nymfonya\Component\Http\Middleware; |
|
| 8 | 10 | use Nymfonya\Component\Http\Request; |
| 9 | 11 | use Nymfonya\Component\Http\Response; |
| 10 | 12 | use Nymfonya\Component\Http\Router; |
| 11 | -use Nymfonya\Component\Http\Middleware; |
|
| 12 | -use Monolog\Logger; |
|
| 13 | 13 | use \ReflectionClass; |
| 14 | 14 | |
| 15 | 15 | trait TKernel |
@@ -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 |
@@ -10,6 +10,7 @@ |
||
| 10 | 10 | * instanciate |
| 11 | 11 | * |
| 12 | 12 | * @param array $routes |
| 13 | + * @return Routes |
|
| 13 | 14 | */ |
| 14 | 15 | public function __construct(array $routes); |
| 15 | 16 | |
@@ -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 | { |
@@ -28,6 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * instanciate |
| 31 | + * @return \Nymfonya\Component\Http\Request|null |
|
| 31 | 32 | */ |
| 32 | 33 | public function __construct(); |
| 33 | 34 | |
@@ -50,7 +51,7 @@ discard block |
||
| 50 | 51 | /** |
| 51 | 52 | * returns http param for a given key |
| 52 | 53 | * |
| 53 | - * @return array |
|
| 54 | + * @return string |
|
| 54 | 55 | */ |
| 55 | 56 | public function getParam(string $key): string; |
| 56 | 57 | |
@@ -8,6 +8,7 @@ |
||
| 8 | 8 | * instanciate |
| 9 | 9 | * |
| 10 | 10 | * @param string $routeItem |
| 11 | + * @return \Nymfonya\Component\Http\Route|null |
|
| 11 | 12 | */ |
| 12 | 13 | public function __construct(string $routeItem); |
| 13 | 14 | |