Classes/Backend/Module/ManagerModuleHandler.php
registerEntityNotificationControllers accesses the super-global variable $GLOBALS. Open
Open
public function registerEntityNotificationControllers()
{
$controllers = [
'Backend\\Manager\\Notification\\ShowEntityEmail' => [
'show',
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
Line exceeds 160 characters; contains 174 characters Open
Open
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['Notiz']['modules'][$this->getModuleName()]['controllers'][$controller] = ['actions' => $actions];
- Exclude checks