Remove superfluous property declaration in Settings\UserExport

- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1312417007
This commit is contained in:
Hypolite Petovan 2022-11-12 08:37:42 -05:00
parent 07d42d6af2
commit eedde86a37
2 changed files with 3 additions and 8 deletions

View file

@ -51,11 +51,10 @@ class RemoveMe extends BaseSettings
/** @var Cookie */ /** @var Cookie */
private $cookie; private $cookie;
public function __construct(Cookie $cookie, SystemMessages $systemMessages, Emailer $emailer, Database $database, IManageConfigValues $config, App\Page $page, IHandleUserSessions $session, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = []) public function __construct(Cookie $cookie, SystemMessages $systemMessages, Emailer $emailer, Database $database, IManageConfigValues $config, IHandleUserSessions $session, App\Page $page, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = [])
{ {
parent::__construct($session, $page, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); parent::__construct($session, $page, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->session = $session;
$this->config = $config; $this->config = $config;
$this->database = $database; $this->database = $database;
$this->emailer = $emailer; $this->emailer = $emailer;

View file

@ -47,17 +47,13 @@ use Psr\Log\LoggerInterface;
**/ **/
class UserExport extends BaseSettings class UserExport extends BaseSettings
{ {
/** @var IHandleUserSessions */
private $session;
/** @var DbaDefinition */ /** @var DbaDefinition */
private $dbaDefinition; private $dbaDefinition;
public function __construct(DbaDefinition $dbaDefinition, IHandleUserSessions $session, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = []) public function __construct(DbaDefinition $dbaDefinition, IHandleUserSessions $session, App\Page $page, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = [])
{ {
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); parent::__construct($session, $page, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->session = $session;
$this->dbaDefinition = $dbaDefinition; $this->dbaDefinition = $dbaDefinition;
} }