mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 03:32:49 +08:00
Fix some class names, clean up imports
This commit is contained in:
parent
a0621e85bf
commit
8a6344cfcf
|
@ -27,7 +27,6 @@ class ResetPasswordController extends AbstractHtmlController
|
|||
|
||||
/**
|
||||
* @param Factory $view
|
||||
* @param TranslatorInterface $translator
|
||||
*/
|
||||
public function __construct(Factory $view)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ use Flarum\Http\UrlGenerator;
|
|||
use Flarum\User\PasswordToken;
|
||||
use Flarum\User\UserValidator;
|
||||
use Illuminate\Contracts\Validation\Factory;
|
||||
use Illuminate\Contracts\Validation\ValidationException;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Zend\Diactoros\Response\RedirectResponse;
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ use Flarum\Http\Middleware\StartSession;
|
|||
use Flarum\Http\RouteCollection;
|
||||
use Flarum\Http\RouteHandlerFactory;
|
||||
use Flarum\Http\UrlGenerator;
|
||||
use Flarum\Settings\Event\Saved;
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Zend\Stratigility\MiddlewarePipe;
|
||||
|
|
|
@ -13,8 +13,8 @@ namespace Flarum\Foundation;
|
|||
|
||||
use Flarum\Foundation\Event\Validating;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Validation\ValidationException;
|
||||
use Illuminate\Validation\Factory;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
|
||||
abstract class AbstractValidator
|
||||
|
|
|
@ -16,7 +16,6 @@ use Flarum\Database\AbstractModel;
|
|||
use Flarum\Database\ScopeVisibilityTrait;
|
||||
use Flarum\Event\ConfigureUserPreferences;
|
||||
use Flarum\Event\GetDisplayName;
|
||||
use Flarum\Event\PostWasDeleted;
|
||||
use Flarum\Event\PrepareUserGroups;
|
||||
use Flarum\Foundation\Application;
|
||||
use Flarum\Foundation\EventGeneratorTrait;
|
||||
|
|
|
@ -15,6 +15,7 @@ use Flarum\Event\ConfigureUserPreferences;
|
|||
use Flarum\Event\GetPermission;
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
use RuntimeException;
|
||||
|
||||
class UserServiceProvider extends AbstractServiceProvider
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user