for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Access for global methods
*
* @package Html5videoplayerPowermail\Utility
* @author Tim Lochmüller
*/
namespace HVP\Html5videoplayerPowermail\Utility;
use TYPO3\CMS\Core\Database\DatabaseConnection;
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
class GlobalUtility
{
* Get the TSFE
* @return TypoScriptFrontendController
public static function getTypoScriptFrontendController()
return $GLOBALS['TSFE'];
}
* Get the database connection
* @return DatabaseConnection
public static function getDatabaseConnection()
return $GLOBALS['TYPO3_DB'];