/** * Initialize the object */ public function __construct() { $extensionSettingService = t3lib_div::makeInstance('tx_vcc_service_extensionSettingService'); $this->injectExtensionSettingService($extensionSettingService); $configuration = $this->extensionSettingService->getConfiguration(); $this->debug = $configuration['debug']; $this->maxLogAge = $configuration['maxLogAge']; $this->hash = md5(uniqid('LoggingService', TRUE)); }
/** * Initialize the object */ public function __construct() { $extensionSettingService = t3lib_div::makeInstance('tx_vcc_service_extensionSettingService'); $this->injectExtensionSettingService($extensionSettingService); $loggingService = t3lib_div::makeInstance('tx_vcc_service_loggingService'); $this->injectLoggingService($loggingService); $tsConfigService = t3lib_div::makeInstance('tx_vcc_service_tsConfigService'); $this->injectTsConfigService($tsConfigService); $configuration = $this->extensionSettingService->getConfiguration(); $this->serverArray = t3lib_div::trimExplode(',', $configuration['server'], 1); $this->httpMethod = trim($configuration['httpMethod']); $this->httpProtocol = trim($configuration['httpProtocol']); $this->stripSlash = $configuration['stripSlash']; $this->enableIndexScript = $configuration['enableIndexScript']; if (!is_object($GLOBALS['TSFE'])) { $this->createTSFE(); } $this->contentObject = t3lib_div::makeInstance('tslib_cObj'); // Initialize hook objects $this->initializeHookObjects(); }