TYPO3 CMS  TYPO3_6-2
BackendLogModuleBootstrap.php
Go to the documentation of this file.
1 <?php
3 
28 
34  public function init() {
35 
36  }
37 
43  public function checkExtObj() {
44 
45  }
46 
52  public function main() {
53  $configuration = array(
54  'extensionName' => 'Belog',
55  'pluginName' => 'system_BelogLog',
56  'vendorName' => 'TYPO3\\CMS',
57  );
58  // Yeah, this is ugly. But currently, there is no other direct way
59  // in extbase to force a specific controller in backend mode.
60  // Overwriting $_GET was the most simple solution here until extbase
61  // provides a clean way to solve this.
62  $_GET['tx_belog_system_beloglog']['controller'] = 'WebInfo';
64  $extbaseBootstrap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Core\\Bootstrap');
65  return $extbaseBootstrap->run('', $configuration);
66  }
67 
68 }