Fix PHP 5.5 compat

This commit is contained in:
Toby Zerner 2015-08-17 14:56:39 +09:30
parent 2d090f9b3a
commit 0d3b578ea3

View File

@ -3,6 +3,9 @@
use Flarum\Support\ClientAction as BaseClientAction; use Flarum\Support\ClientAction as BaseClientAction;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;
use Flarum\Core\Groups\Permission; use Flarum\Core\Groups\Permission;
use Flarum\Api\Client;
use Flarum\Core\Settings\SettingsRepository;
use Flarum\Locale\LocaleManager;
class ClientAction extends BaseClientAction class ClientAction extends BaseClientAction
{ {
@ -14,14 +17,19 @@ class ClientAction extends BaseClientAction
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected $layout = __DIR__.'/../../../views/admin.blade.php'; protected $translationKeys = [
];
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected $translationKeys = [ public function __construct(Client $apiClient, LocaleManager $locales, SettingsRepository $settings)
{
parent::__construct($apiClient, $locales, $settings);
]; $this->layout = __DIR__.'/../../../views/admin.blade.php';
}
/** /**
* {@inheritdoc} * {@inheritdoc}