/** * Construct the InlineScript helper. * * @param ServiceManager $sm Service manager. * * @return InlineScript */ public static function getInlineScript(ServiceManager $sm) { return new InlineScript($sm->getServiceLocator()->get('VuFindTheme\\ThemeInfo'), Factory::getPipelineConfig($sm)); }
/** * Construct the HeadScript helper. * * @param ServiceManager $sm Service manager. * * @return HeadScript */ public static function getHeadScript(ServiceManager $sm) { $locator = $sm->getServiceLocator(); return new HeadScript($locator->get('VuFindTheme\\ThemeInfo'), \VuFindTheme\View\Helper\Factory::getPipelineConfig($sm), $locator->get('Request')); }