Example #1
0
 /**
  * Inject all dependencies, DI is not available here
  */
 public function __construct()
 {
     $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->securityService = $this->objectManager->get('Aijko\\Paypal\\Service\\Security');
     $this->configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
     $pluginConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'paypal');
     $this->settings = $pluginConfiguration['settings'];
     $this->securityService->injectSettings($this->settings);
     $this->viewUtility = $this->objectManager->get('Aijko\\SharepointConnector\\Utility\\View');
     $this->viewUtility->setTemplateRootPath($pluginConfiguration['view']['templateRootPath']);
 }