/** * @param LanguageService $languageService Language Service to inject */ public function __construct(LanguageService $languageService = null) { parent::__construct(); $this->languageService = $languageService ?: $GLOBALS['LANG']; }
/** * ViewController constructor. */ function __construct() { parent::__construct(); $this->cacheUtility = new CacheUtility('bwrk_resources_slider'); $this->pid = $GLOBALS['TSFE']->id; $this->cacheIdentifier = $this->getCacheIdentifier(); }
public function __construct() { parent::__construct(); $GLOBALS['LANG']->includeLLFile('EXT:viewpage/Resources/Private/Language/locallang.xlf'); $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer(); $this->pageRenderer->addInlineSettingArray('web_view', array('States' => $GLOBALS['BE_USER']->uc['moduleData']['web_view']['States'])); $this->pageRenderer->addInlineLanguageLabelFile('EXT:viewpage/Resources/Private/Language/locallang.xlf'); }
/** * CacheUtility constructor. */ public function __construct() { parent::__construct(); $this->_extKey = GeneralUtility::camelCaseToLowerCaseUnderscored($this->extensionName); $this->_request = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Mvc\\Request'); $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->_configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager'); }
/** * Constructor for all plugin controllers * * @param Tx_PtExtbase_Lifecycle_Manager $lifeCycleManager */ public function __construct(Tx_PtExtbase_Lifecycle_Manager $lifeCycleManager) { $this->lifecycleManager = $lifeCycleManager; if (TYPO3_MODE == 'FE' && !$GLOBALS['TSFE']->beUserLogin) { $this->errorMethodName = 'productionErrorAction'; } parent::__construct(); }
/** * ModuleController constructor. */ public function __construct() { parent::__construct(); $this->backendUser = self::getBackendUserAuthentication(); }