Flatten Flarum\Http namespace

This commit is contained in:
Franz Liedke 2017-06-24 13:19:56 +02:00
parent 5a6d28f8a7
commit d0b5aa2338
11 changed files with 12 additions and 12 deletions

View File

@ -15,7 +15,7 @@ use Flarum\Event\ExtensionWasDisabled;
use Flarum\Event\ExtensionWasEnabled;
use Flarum\Settings\Event\Saved;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
class AdminServiceProvider extends AbstractServiceProvider

View File

@ -10,7 +10,7 @@
*/
use Flarum\Admin\Controller;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
return function (RouteCollection $map, RouteHandlerFactory $route) {

View File

@ -17,7 +17,7 @@ use Flarum\Api\Serializer\NotificationSerializer;
use Flarum\Event\ConfigureApiRoutes;
use Flarum\Event\ConfigureNotificationTypes;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
use Tobscure\JsonApi\ErrorHandler;
use Tobscure\JsonApi\Exception\Handler\FallbackExceptionHandler;

View File

@ -10,7 +10,7 @@
*/
use Flarum\Api\Controller;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
return function (RouteCollection $map, RouteHandlerFactory $route) {

View File

@ -11,7 +11,7 @@
namespace Flarum\Event;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
abstract class AbstractConfigureRoutes
@ -28,7 +28,7 @@ abstract class AbstractConfigureRoutes
/**
* @param RouteCollection $routes
* @param RouteHandlerFactory $route
* @param \Flarum\Http\RouteHandlerFactory $route
*/
public function __construct(RouteCollection $routes, RouteHandlerFactory $route)
{

View File

@ -16,7 +16,7 @@ use Flarum\Event\ExtensionWasDisabled;
use Flarum\Event\ExtensionWasEnabled;
use Flarum\Settings\Event\Saved;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
class ForumServiceProvider extends AbstractServiceProvider

View File

@ -10,7 +10,7 @@
*/
use Flarum\Forum\Controller;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
return function (RouteCollection $map, RouteHandlerFactory $route) {

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Flarum\Http\Handler;
namespace Flarum\Http;
use Flarum\Http\Controller\ControllerInterface;
use Illuminate\Contracts\Container\Container;

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Flarum\Http\Handler;
namespace Flarum\Http;
use Illuminate\Contracts\Container\Container;

View File

@ -12,7 +12,7 @@
namespace Flarum\Install;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
use Flarum\Install\Prerequisite\Composite;
use Flarum\Install\Prerequisite\PhpExtensions;

View File

@ -12,7 +12,7 @@
namespace Flarum\Update;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\Handler\RouteHandlerFactory;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection;
class UpdateServiceProvider extends AbstractServiceProvider