@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace CarbonFramework\Routing; |
| 4 | 4 | |
| 5 | -use Closure; |
|
| 6 | -use Exception; |
|
| 7 | 5 | use CarbonFramework\Request; |
| 8 | 6 | use CarbonFramework\Routing\Conditions\ConditionInterface; |
| 9 | 7 | use CarbonFramework\Routing\Conditions\Url as UrlCondition; |
| 10 | 8 | use CarbonFramework\Routing\Middleware\HasMiddlewareTrait; |
| 9 | +use Closure; |
|
| 10 | +use Exception; |
|
| 11 | 11 | |
| 12 | 12 | class RouteGroup implements RouteInterface { |
| 13 | 13 | use HasRoutesTrait { |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace CarbonFramework\Routing; |
| 4 | 4 | |
| 5 | -use Exception; |
|
| 6 | 5 | use CarbonFramework\Request; |
| 7 | -use CarbonFramework\Routing\Middleware\HasMiddlewareTrait; |
|
| 8 | 6 | use CarbonFramework\Routing\Conditions\ConditionInterface; |
| 9 | 7 | use CarbonFramework\Routing\Conditions\Factory; |
| 10 | -use CarbonFramework\Routing\Conditions\Url as UrlCondition; |
|
| 11 | 8 | use CarbonFramework\Routing\Conditions\InvalidRouteConditionException; |
| 9 | +use CarbonFramework\Routing\Conditions\Url as UrlCondition; |
|
| 10 | +use CarbonFramework\Routing\Middleware\HasMiddlewareTrait; |
|
| 11 | +use Exception; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Represent a route |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace CarbonFramework\Routing\Conditions; |
| 4 | 4 | |
| 5 | -use Closure; |
|
| 6 | -use ReflectionClass; |
|
| 7 | -use Exception; |
|
| 8 | 5 | use CarbonFramework\Framework; |
| 9 | -use CarbonFramework\Routing\Conditions\Url as UrlCondition; |
|
| 10 | 6 | use CarbonFramework\Routing\Conditions\Custom as CustomCondition; |
| 11 | 7 | use CarbonFramework\Routing\Conditions\Multiple as MultipleCondition; |
| 8 | +use CarbonFramework\Routing\Conditions\Url as UrlCondition; |
|
| 9 | +use Closure; |
|
| 10 | +use Exception; |
|
| 11 | +use ReflectionClass; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Check against the current url |