TYPO3 CMS  TYPO3_6-2
ExtensionRepository.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $objectManager;
27 
31  public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
32  $this->objectManager = $objectManager;
33  }
34 
40  public function findAllLoaded() {
41  $loadedExtensions = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
42  $loadedExtensionsArray = $GLOBALS['TYPO3_LOADED_EXT'];
43  foreach ($loadedExtensionsArray as $extensionKey => $extension) {
44  if ((is_array($extension) || $extension instanceof \ArrayAccess) && $extension['type'] != 'S') {
45  $emconfPath = PATH_site . $extension['siteRelPath'] . 'ext_emconf.php';
46  if (file_exists($emconfPath)) {
47  include $emconfPath;
48  $extension = $this->objectManager->get('TYPO3\\CMS\\About\\Domain\\Model\\Extension');
49  $extension->setKey($extensionKey);
50  $extension->setTitle($EM_CONF['']['title']);
51  $extension->setAuthor($EM_CONF['']['author']);
52  $extension->setAuthorEmail($EM_CONF['']['author_email']);
53  $loadedExtensions->attach($extension);
54  }
55  }
56  }
57  return $loadedExtensions;
58  }
59 
60 }
injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
$EM_CONF[$_EXTKEY]
Definition: ext_emconf.php:2
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]