mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
Add Interface suffix to SettingsRepository
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Flarum\Api\Controller;
|
||||
|
||||
use Flarum\Core\Access\AssertPermissionTrait;
|
||||
use Flarum\Http\Controller\ControllerInterface;
|
||||
use Flarum\Settings\SettingsRepository;
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
use Flarum\Event\SettingWasSet;
|
||||
use Flarum\Event\PrepareSerializedSetting;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
@@ -24,7 +24,7 @@ class SetSettingsController implements ControllerInterface
|
||||
use AssertPermissionTrait;
|
||||
|
||||
/**
|
||||
* @var \Flarum\Settings\SettingsRepository
|
||||
* @var \Flarum\Settings\SettingsRepositoryInterface
|
||||
*/
|
||||
protected $settings;
|
||||
|
||||
@@ -34,9 +34,9 @@ class SetSettingsController implements ControllerInterface
|
||||
protected $dispatcher;
|
||||
|
||||
/**
|
||||
* @param SettingsRepository $settings
|
||||
* @param SettingsRepositoryInterface $settings
|
||||
*/
|
||||
public function __construct(SettingsRepository $settings, Dispatcher $dispatcher)
|
||||
public function __construct(SettingsRepositoryInterface $settings, Dispatcher $dispatcher)
|
||||
{
|
||||
$this->settings = $settings;
|
||||
$this->dispatcher = $dispatcher;
|
||||
|
@@ -12,7 +12,7 @@ namespace Flarum\Api\Serializer;
|
||||
|
||||
use Flarum\Foundation\Application;
|
||||
use Flarum\Core\Access\Gate;
|
||||
use Flarum\Settings\SettingsRepository;
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
|
||||
class ForumSerializer extends AbstractSerializer
|
||||
{
|
||||
@@ -32,16 +32,16 @@ class ForumSerializer extends AbstractSerializer
|
||||
protected $app;
|
||||
|
||||
/**
|
||||
* @var SettingsRepository
|
||||
* @var SettingsRepositoryInterface
|
||||
*/
|
||||
protected $settings;
|
||||
|
||||
/**
|
||||
* @param Gate $gate
|
||||
* @param Application $app
|
||||
* @param SettingsRepository $settings
|
||||
* @param SettingsRepositoryInterface $settings
|
||||
*/
|
||||
public function __construct(Gate $gate, Application $app, SettingsRepository $settings)
|
||||
public function __construct(Gate $gate, Application $app, SettingsRepositoryInterface $settings)
|
||||
{
|
||||
$this->gate = $gate;
|
||||
$this->app = $app;
|
||||
|
Reference in New Issue
Block a user