Skip to content

Commit

Permalink
remove ServerConfig dependancy - working first
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Oct 4, 2024
1 parent 176afc4 commit 795bfca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions solid/lib/Settings/SolidAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@
class SolidAdmin implements ISettings {
private IL10N $l;
private IConfig $config;
private ServerConfig $serverConfig;

public function __construct(IConfig $config, IL10N $l, ServerConfig $serverConfig) {
public function __construct(IConfig $config, IL10N $l) {
$this->config = $config;
$this->l = $l;
$this->serverConfig = $serverConfig;
}

/**
* @return TemplateResponse
*/
public function getForm() {
$parameters = [
'privateKey' => $this->serverConfig->getPrivateKey(),
'encryptionKey' => $this->serverConfig->getEncryptionKey()
'privateKey' => $this->config->getAppValue('solid','privateKey'),
'encryptionKey' => this->config->getAppValue('solid','encryptionKey'),
];

return new TemplateResponse('solid', 'admin', $parameters, '');
Expand Down

0 comments on commit 795bfca

Please sign in to comment.