Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contao-community-alliance/backports-initialize-system
Backport of the initializeSystem Hook for Contao Open Source CMS.
https://github.com/contao-community-alliance/backports-initialize-system
Last synced: about 2 months ago
JSON representation
Backport of the initializeSystem Hook for Contao Open Source CMS.
- Host: GitHub
- URL: https://github.com/contao-community-alliance/backports-initialize-system
- Owner: contao-community-alliance
- Created: 2014-02-09T15:00:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-04T08:50:37.000Z (about 10 years ago)
- Last Synced: 2024-11-30T00:37:46.657Z (about 2 months ago)
- Language: PHP
- Size: 189 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Backports: initializeSystem Hook
================================Allows you to use the `$GLOBALS['TL_HOOKS']['initializeSystem']` Hook on Contao 2.11 and 3.0.
Known limitations
-----------------On Contao 3.1 or newer, the [initializeSystem](https://github.com/contao/core/blob/3.1.0/system/initialize.php#L230)
Hooks is called immediately before the `initconfig.php` is included, at the near end of the `initialize.php`.This backport use an autoloader injection and will be loaded when the `RequestToken` class [get loaded](https://github.com/contao/core/blob/3.0.0/system/initialize.php#L94)
in the mid of the `initialize.php`. That means, that the timezone is not set, `TL_PATH` is not defined and no `$GLOBALS['TL_LANGUAGE']` is set!When you use this backport, you need to deal with this limitation ;-)