TYPO3 CMS  TYPO3_6-2
UpdateExtensionListTask.php
Go to the documentation of this file.
1 <?php
3 
23 
29  public function execute() {
30  // Throws exceptions if something went wrong
31  $this->updateExtensionList();
32 
33  return TRUE;
34  }
35 
43  protected function updateExtensionList() {
45  $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
46 
48  $repositoryHelper = $objectManager->get('TYPO3\\CMS\\Extensionmanager\\Utility\\Repository\\Helper');
49  $repositoryHelper->updateExtList();
50 
52  $persistenceManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager');
53  $persistenceManager->persistAll();
54  }
55 }