mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
pleasing the angry god Circle
This commit is contained in:
parent
642332ffe2
commit
4d9e2335c7
|
@ -18,9 +18,9 @@ use Flarum\User\AssertPermissionTrait;
|
|||
use Flarum\User\EmailToken;
|
||||
use Flarum\User\Exception\PermissionDeniedException;
|
||||
use Illuminate\Contracts\Mail\Mailer;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Mail\Message;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Zend\Diactoros\Response\EmptyResponse;
|
||||
|
||||
class SendConfirmationEmailController implements ControllerInterface
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
namespace Flarum\Api\Serializer;
|
||||
|
||||
use Flarum\Group\Group;
|
||||
use InvalidArgumentException;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use InvalidArgumentException;
|
||||
|
||||
class GroupSerializer extends AbstractSerializer
|
||||
{
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Bus;
|
||||
|
||||
use Illuminate\Bus\Dispatcher as BaseDispatcher;
|
||||
|
@ -8,7 +17,7 @@ class Dispatcher extends BaseDispatcher
|
|||
{
|
||||
public function getCommandHandler($command)
|
||||
{
|
||||
$handler = get_class($command) . 'Handler';
|
||||
$handler = get_class($command).'Handler';
|
||||
|
||||
if (class_exists($handler)) {
|
||||
return $this->container->make($handler);
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace Flarum\Database;
|
|||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Illuminate\Database\ConnectionResolver;
|
||||
use Illuminate\Database\Connectors\ConnectionFactory;
|
||||
use PDO;
|
||||
|
||||
class DatabaseServiceProvider extends AbstractServiceProvider
|
||||
{
|
||||
|
|
|
@ -15,9 +15,9 @@ use DateTime;
|
|||
use Flarum\Http\Controller\AbstractHtmlController;
|
||||
use Flarum\User\Exception\InvalidConfirmationTokenException;
|
||||
use Flarum\User\PasswordToken;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
|
||||
class ResetPasswordController extends AbstractHtmlController
|
||||
{
|
||||
|
|
|
@ -13,9 +13,9 @@ namespace Flarum\Foundation;
|
|||
|
||||
use Flarum\Foundation\Event\Validating;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Contracts\Validation\ValidationException;
|
||||
use Illuminate\Validation\Factory;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
|
||||
abstract class AbstractValidator
|
||||
{
|
||||
|
|
|
@ -29,6 +29,7 @@ use Flarum\Settings\SettingsRepositoryInterface;
|
|||
use Flarum\User\User;
|
||||
use Flarum\User\UserServiceProvider;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Database\ConnectionInterface;
|
||||
use Illuminate\Database\ConnectionResolverInterface;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
@ -36,7 +37,6 @@ use Illuminate\Filesystem\Filesystem;
|
|||
use Illuminate\Validation\Factory;
|
||||
use PDO;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
|
||||
class InstallCommand extends AbstractCommand
|
||||
{
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
namespace Flarum\Locale;
|
||||
|
||||
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
|
||||
class LocaleManager
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
namespace Flarum\Locale;
|
||||
|
||||
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
|
||||
use Symfony\Component\Translation\MessageCatalogueInterface;
|
||||
use Symfony\Component\Translation\Translator as BaseTranslator;
|
||||
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
|
||||
|
||||
class Translator extends BaseTranslator implements TranslatorContract
|
||||
{
|
||||
|
|
|
@ -16,11 +16,11 @@ use Flarum\Settings\SettingsRepositoryInterface;
|
|||
use Flarum\User\PasswordToken;
|
||||
use Flarum\User\UserRepository;
|
||||
use Illuminate\Contracts\Mail\Mailer;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Contracts\Validation\Factory;
|
||||
use Illuminate\Contracts\Validation\ValidationException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Mail\Message;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
|
||||
class RequestPasswordResetHandler
|
||||
{
|
||||
|
|
|
@ -17,8 +17,8 @@ use Flarum\User\Event\EmailChangeRequested;
|
|||
use Flarum\User\Event\Registered;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Mail\Mailer;
|
||||
use Illuminate\Mail\Message;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Mail\Message;
|
||||
|
||||
class EmailConfirmationMailer
|
||||
{
|
||||
|
|
|
@ -15,8 +15,8 @@ use Exception;
|
|||
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
|
||||
use Illuminate\Translation\ArrayLoader;
|
||||
use Illuminate\Translation\Translator;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Illuminate\Validation\Factory;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Tests\Test\TestCase;
|
||||
|
||||
class IlluminateValidationExceptionHandlerTest extends TestCase
|
||||
|
|
Loading…
Reference in New Issue
Block a user