Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions config/config.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -1659,15 +1659,6 @@
*/
'comments.managerFactory' => '\OC\Comments\ManagerFactory',

/**
* Replaces the default System Tags Manager Factory. This can be utilized if an
* own or 3rd-party SystemTagsManager should be used that – for instance – uses the
* filesystem instead of the database to keep the tags.
*
* Defaults to ``\OC\SystemTag\ManagerFactory``
*/
'systemtags.managerFactory' => '\OC\SystemTag\ManagerFactory',

/**
* Maintenance
*
Expand Down
9 changes: 5 additions & 4 deletions lib/private/Activity/EventMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
use OCP\Activity\IEvent;
use OCP\Activity\IEventMerger;
use OCP\IL10N;
use OCP\L10N\IFactory;

class EventMerger implements IEventMerger {
/**
* @param IL10N $l10n
*/
private readonly IL10N $l10n;

public function __construct(
protected IL10N $l10n,
IFactory $factory,
) {
$this->l10n = $factory->get('lib');
}

/**
Expand Down
5 changes: 4 additions & 1 deletion lib/private/App/AppStore/Bundles/BundleFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
namespace OC\App\AppStore\Bundles;

use OCP\IL10N;
use OCP\L10N\IFactory;

class BundleFetcher {
private IL10N $l10n;
public function __construct(
private IL10N $l10n,
IFactory $factory,
) {
$this->l10n = $factory->get('lib');
}

/**
Expand Down
7 changes: 6 additions & 1 deletion lib/private/Diagnostics/QueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace OC\Diagnostics;

use OC\SystemConfig;
use OCP\Cache\CappedMemoryCache;
use OCP\Diagnostics\IQueryLogger;

Expand All @@ -20,7 +21,11 @@ class QueryLogger implements IQueryLogger {
/**
* QueryLogger constructor.
*/
public function __construct() {
public function __construct(SystemConfig $config) {
if ($config->getValue('debug', false)) {
// In debug mode, module is being activated by default
$this->activate();
}
$this->queries = new CappedMemoryCache(1024);
}

Expand Down
Loading
Loading