Skip to content

Commit

Permalink
initiate config container variable
Browse files Browse the repository at this point in the history
  • Loading branch information
navid-shokri committed Apr 13, 2023
1 parent 37235ac commit 8ce3a8e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/federatedfilesharing/lib/Controller/OcmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ class OcmController extends Controller {
*/
protected $logger;

/**
* @var IConfig
*/
protected $config;


/**
* OcmController constructor.
*
Expand Down Expand Up @@ -105,6 +111,7 @@ public function __construct(
$this->addressHandler = $addressHandler;
$this->fedShareManager = $fedShareManager;
$this->logger = $logger;
$this->config = \OC::$server->getConfig();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class ExternalSharesController extends Controller {
*/
private $dispatcher;

/**
* @var IConfig
*/
protected $config;


/**
* ExternalSharesController constructor.
*
Expand All @@ -70,6 +76,8 @@ public function __construct(
$this->externalManager = $externalManager;
$this->clientService = $clientService;
$this->dispatcher = $eventDispatcher;
$this->config = \OC::$server->getConfig();

// Allow other apps to add an external manager for user-to-group shares
$managerClass = $this->config->getSystemValue('sharing.groupExternalManager');
if ($managerClass !== '') {
Expand Down

0 comments on commit 8ce3a8e

Please sign in to comment.