mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Flatten Flarum\Http namespace
This commit is contained in:
parent
5a6d28f8a7
commit
d0b5aa2338
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Http\Handler;
|
||||
namespace Flarum\Http;
|
||||
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user