Completed
Push — master ( bbe443...f4a6ec )
by Tim
24:42 queued 09:39
created

GlobalUtility::getTypoScriptFrontendController()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Access for global methods
4
 *
5
 * @package Html5videoplayerPowermail\Utility
6
 * @author  Tim Lochmüller
7
 */
8
9
namespace HVP\Html5videoplayerPowermail\Utility;
10
11
use TYPO3\CMS\Core\Database\DatabaseConnection;
12
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
13
14
/**
15
 * Access for global methods
16
 *
17
 * @author Tim Lochmüller
18
 */
19
class GlobalUtility
20
{
21
22
    /**
23
     * Get the TSFE
24
     *
25
     * @return TypoScriptFrontendController
26
     */
27
    public static function getTypoScriptFrontendController()
28
    {
29
        return $GLOBALS['TSFE'];
30
    }
31
32
    /**
33
     * Get the database connection
34
     *
35
     * @return DatabaseConnection
36
     */
37
    public static function getDatabaseConnection()
38
    {
39
        return $GLOBALS['TYPO3_DB'];
40
    }
41
}
42