From a2dfdbb8601d93da5175fc35287befa363eb5ccf Mon Sep 17 00:00:00 2001 From: Andrew Summers <18727110+summersab@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:32:04 -0500 Subject: [PATCH] Refactor `OC\Server::getCapabilitiesManager` Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com> --- lib/private/TemplateLayout.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 658a85152bf49..2fde694376f39 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -43,6 +43,7 @@ namespace OC; use bantu\IniGetWrapper\IniGetWrapper; +use OC\CapabilitiesManager; use OC\Search\SearchQuery; use OC\Template\CSSResourceLocator; use OC\Template\JSConfigHelper; @@ -234,7 +235,7 @@ public function __construct($renderAs, $appId = '') { \OC::$server->getGroupManager(), \OC::$server->get(IniGetWrapper::class), \OC::$server->getURLGenerator(), - \OC::$server->getCapabilitiesManager(), + \OC::$server->get(CapabilitiesManager::class), \OCP\Server::get(IInitialStateService::class) ); $config = $jsConfigHelper->getConfig();