Move MethodMap to Route namespace

This commit is contained in:
PJ Dietz 2018-06-22 15:17:07 -04:00
parent ac8bdce037
commit 64628c4065
9 changed files with 8 additions and 10 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
namespace WellRESTed\Routing; namespace WellRESTed\Routing\Route;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -4,7 +4,6 @@ namespace WellRESTed\Routing\Route;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use WellRESTed\Routing\MethodMap;
abstract class Route implements RouteInterface abstract class Route implements RouteInterface
{ {

View File

@ -3,7 +3,6 @@
namespace WellRESTed\Routing\Route; namespace WellRESTed\Routing\Route;
use WellRESTed\Dispatching\DispatcherInterface; use WellRESTed\Dispatching\DispatcherInterface;
use WellRESTed\Routing\MethodMap;
/** /**
* Class for creating routes * Class for creating routes

View File

@ -1,11 +1,11 @@
<?php <?php
namespace WellRESTed\Test\Unit\Routing; namespace WellRESTed\Test\Unit\Routing\Route;
use WellRESTed\Dispatching\Dispatcher; use WellRESTed\Dispatching\Dispatcher;
use WellRESTed\Message\Response; use WellRESTed\Message\Response;
use WellRESTed\Message\ServerRequest; use WellRESTed\Message\ServerRequest;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Test\Doubles\MiddlewareMock; use WellRESTed\Test\Doubles\MiddlewareMock;
use WellRESTed\Test\Doubles\NextMock; use WellRESTed\Test\Doubles\NextMock;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;

View File

@ -2,7 +2,7 @@
namespace WellRESTed\Test\Unit\Routing\Route; namespace WellRESTed\Test\Unit\Routing\Route;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Routing\Route\PrefixRoute; use WellRESTed\Routing\Route\PrefixRoute;
use WellRESTed\Routing\Route\RouteInterface; use WellRESTed\Routing\Route\RouteInterface;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;

View File

@ -4,7 +4,7 @@ namespace WellRESTed\Test\Unit\Routing\Route;
use PHPUnit\Framework\Error\Notice; use PHPUnit\Framework\Error\Notice;
use PHPUnit\Framework\Error\Warning; use PHPUnit\Framework\Error\Warning;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Routing\Route\RegexRoute; use WellRESTed\Routing\Route\RegexRoute;
use WellRESTed\Routing\Route\RouteInterface; use WellRESTed\Routing\Route\RouteInterface;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;

View File

@ -6,7 +6,7 @@ use Prophecy\Argument;
use Psr\Http\Server\RequestHandlerInterface; use Psr\Http\Server\RequestHandlerInterface;
use WellRESTed\Message\Response; use WellRESTed\Message\Response;
use WellRESTed\Message\ServerRequest; use WellRESTed\Message\ServerRequest;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Routing\Route\StaticRoute; use WellRESTed\Routing\Route\StaticRoute;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;

View File

@ -2,7 +2,7 @@
namespace WellRESTed\Test\Unit\Routing\Route; namespace WellRESTed\Test\Unit\Routing\Route;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Routing\Route\RouteInterface; use WellRESTed\Routing\Route\RouteInterface;
use WellRESTed\Routing\Route\StaticRoute; use WellRESTed\Routing\Route\StaticRoute;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;

View File

@ -2,7 +2,7 @@
namespace WellRESTed\Test\Unit\Routing\Route; namespace WellRESTed\Test\Unit\Routing\Route;
use WellRESTed\Routing\MethodMap; use WellRESTed\Routing\Route\MethodMap;
use WellRESTed\Routing\Route\RouteInterface; use WellRESTed\Routing\Route\RouteInterface;
use WellRESTed\Routing\Route\TemplateRoute; use WellRESTed\Routing\Route\TemplateRoute;
use WellRESTed\Test\TestCase; use WellRESTed\Test\TestCase;