diff --git a/module/VuFind/src/VuFind/Bootstrapper.php b/module/VuFind/src/VuFind/Bootstrapper.php index 269a9c298e983f35e2cd13f4065c860be540259d..72b941ec3c81a0b0f0e97a6bec5afb5ee8d69761 100644 --- a/module/VuFind/src/VuFind/Bootstrapper.php +++ b/module/VuFind/src/VuFind/Bootstrapper.php @@ -179,7 +179,7 @@ class Bootstrapper { $callback = function ($event) { $serviceManager = $event->getApplication()->getServiceManager(); - $viewModel = $serviceManager->get('viewmanager')->getViewModel(); + $viewModel = $serviceManager->get('ViewManager')->getViewModel(); // Grab the template name from the first child -- we can use this to // figure out the current template context. @@ -352,7 +352,7 @@ class Bootstrapper } } // Send key values to view: - $viewModel = $sm->get('viewmanager')->getViewModel(); + $viewModel = $sm->get('ViewManager')->getViewModel(); $viewModel->setVariable('userLang', $language); $viewModel->setVariable('allLangs', $config->Languages); $rtlLangs = isset($config->LanguageSettings->rtl_langs) @@ -473,7 +473,7 @@ class Bootstrapper // a user-friendly message instead of a fatal error. $callback = function ($event) { $serviceManager = $event->getApplication()->getServiceManager(); - $viewModel = $serviceManager->get('viewmanager')->getViewModel(); + $viewModel = $serviceManager->get('ViewManager')->getViewModel(); $viewModel->renderingError = true; }; $this->events->attach('render.error', $callback, 10000); diff --git a/module/VuFind/src/VuFind/View/Helper/Bootstrap3/Factory.php b/module/VuFind/src/VuFind/View/Helper/Bootstrap3/Factory.php index 7c7e0a0d402780e064f1283023076019261a5618..b6d9b9c104dcf36920d1849645cea5fcf5336423 100644 --- a/module/VuFind/src/VuFind/View/Helper/Bootstrap3/Factory.php +++ b/module/VuFind/src/VuFind/View/Helper/Bootstrap3/Factory.php @@ -75,7 +75,7 @@ class Factory // The right-to-left setting is injected into the layout by the Bootstrapper; // pull it back out here to avoid duplicate effort, then use it to apply // the mirror setting appropriately. - $layout = $sm->getServiceLocator()->get('viewmanager')->getViewModel(); + $layout = $sm->getServiceLocator()->get('ViewManager')->getViewModel(); if ($layout->rtl && $mirror) { $sidebarOnLeft = !$sidebarOnLeft; } diff --git a/module/VuFindTheme/src/VuFindTheme/Initializer.php b/module/VuFindTheme/src/VuFindTheme/Initializer.php index 61ff65e0212155cfd5fde6f62aa8b5c56be00b16..e6e97c8c78e3cba052b651ebe84db7dedcd0c115 100644 --- a/module/VuFindTheme/src/VuFindTheme/Initializer.php +++ b/module/VuFindTheme/src/VuFindTheme/Initializer.php @@ -269,7 +269,7 @@ class Initializer protected function sendThemeOptionsToView() { // Get access to the view model: - $viewModel = $this->serviceManager->get('viewmanager')->getViewModel(); + $viewModel = $this->serviceManager->get('ViewManager')->getViewModel(); // Send down the view options: $viewModel->setVariable('themeOptions', $this->getThemeOptions());