Ejemplo n.º 1
0
 /**
  * @return \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication
  */
 function getUserAuthentication()
 {
     if ($this->frontendUser === null) {
         $this->frontendUser = $this->globals->getFrontendUser();
     }
     return $this->frontendUser;
 }
Ejemplo n.º 2
0
 /**
  * Returns the extension's config from the TYPO3 globals.
  *
  * @return Map
  * @api
  */
 public function getConfig()
 {
     if ($this->config === NULL) {
         $extConf = $this->globals->getConfVar('EXT')['extConf'];
         if (isset($extConf[$this->extensionKey])) {
             $this->config = new Map(unserialize($extConf[$this->extensionKey]));
         } else {
             $this->config = new Map();
         }
     }
     return $this->config;
 }