@@ -3,15 +3,13 @@ |
||
| 3 | 3 | |
| 4 | 4 | use InvalidArgumentException; |
| 5 | 5 | use MJanssen\Route\Factory; |
| 6 | -use MJanssen\Route\Name; |
|
| 7 | -use MJanssen\Route\Route; |
|
| 8 | -use RuntimeException; |
|
| 9 | -use Silex\Application; |
|
| 10 | -use Silex\Controller; |
|
| 11 | -use Pimple\ServiceProviderInterface; |
|
| 12 | 6 | use Pimple\Container; |
| 7 | +use Pimple\ServiceProviderInterface; |
|
| 8 | +use RuntimeException; |
|
| 13 | 9 | use Silex\Api\BootableProviderInterface; |
| 14 | 10 | use Silex\Api\EventListenerProviderInterface; |
| 11 | +use Silex\Application; |
|
| 12 | +use Silex\Controller; |
|
| 15 | 13 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 16 | 14 | |
| 17 | 15 | /** |
@@ -38,12 +38,12 @@ discard block |
||
| 38 | 38 | private $values = []; |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @param array $methods |
|
| 42 | - * @param string $pattern |
|
| 43 | - * @param string $controller |
|
| 44 | - * @param array $asserts |
|
| 45 | - * @param array $values |
|
| 46 | - * @param string $name |
|
| 41 | + * @param Methods $methods |
|
| 42 | + * @param Pattern $pattern |
|
| 43 | + * @param Controller $controller |
|
| 44 | + * @param Asserts $asserts |
|
| 45 | + * @param Values $values |
|
| 46 | + * @param Name $name |
|
| 47 | 47 | */ |
| 48 | 48 | public function __construct( |
| 49 | 49 | Methods $methods, |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @return Pattern |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | public function getPattern() |
| 84 | 84 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @return Controller |
|
| 89 | + * @return string |
|
| 90 | 90 | */ |
| 91 | 91 | public function getController() |
| 92 | 92 | { |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace MJanssen\Route; |
| 4 | 4 | |
| 5 | -use InvalidArgumentException; |
|
| 6 | -use MJanssen\Assert\Method; |
|
| 7 | - |
|
| 8 | 5 | class Route |
| 9 | 6 | { |
| 10 | 7 | /** |