Compatibility class for Contao to have the $GLOBALS['TL_DCA'] populated for pickers as those are hardcoded within
the handler files TL_ROOT/contao/*.php.
To utilize this class, you only have to implement the remaining method "populate" and register the populators
static method "process" to the event dispatcher.
Methods
Create a controller instance in the environment if none has been defined yet.
populate(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : void
Populate the file picker $GLOBALS['TL_DCA'] to make the contao/file.php happy.
populateFilePickers(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : void
The backend file contao/file.php is using hard coded direct array access on the TL_DCA array therefore we need to
dump all of this there.
SuppressWarnings |
(PHPMD.Superglobals) |
SuppressWarnings |
(PHPMD.CamelCaseVariableName) |
Parameters
Constants