mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 13:44:26 +02:00
Add Factory\Api\Mastodon\Error dependency to BaseApi
- Copy Factory\Api\Mastodon\Error->logError functionality to BaseApi
This commit is contained in:
parent
48be5a534d
commit
f70a64891c
21 changed files with 61 additions and 47 deletions
|
@ -54,6 +54,7 @@ class InstanceV2 extends BaseApi
|
|||
private $contactHeader;
|
||||
|
||||
public function __construct(
|
||||
\Friendica\Factory\Api\Mastodon\Error $errorFactory,
|
||||
App $app,
|
||||
L10n $l10n,
|
||||
App\BaseURL $baseUrl,
|
||||
|
@ -66,7 +67,7 @@ class InstanceV2 extends BaseApi
|
|||
array $server,
|
||||
array $parameters = []
|
||||
) {
|
||||
parent::__construct($app, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
|
||||
parent::__construct($errorFactory, $app, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
|
||||
|
||||
$this->database = $database;
|
||||
$this->config = $config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue