Fix PHP 5.5 compat

This commit is contained in:
Toby Zerner 2015-08-17 14:56:39 +09:30
parent 35d3a74872
commit fec6e39fe1

View File

@ -3,6 +3,9 @@
use Flarum\Support\ClientAction as BaseClientAction;
use Psr\Http\Message\ServerRequestInterface as Request;
use Flarum\Core\Groups\Permission;
use Flarum\Api\Client;
use Flarum\Core\Settings\SettingsRepository;
use Flarum\Locale\LocaleManager;
class ClientAction extends BaseClientAction
{
@ -14,14 +17,19 @@ class ClientAction extends BaseClientAction
/**
* {@inheritdoc}
*/
protected $layout = __DIR__.'/../../../views/admin.blade.php';
protected $translationKeys = [
];
/**
* {@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}