Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • Http
  • RequestHandler.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [TASK] Move constant declaration to class constants · 39abe760
    Benni Mack authored Dec 13, 2019 and Georg Ringer's avatar Georg Ringer committed Jan 10, 2020
    Using Class constants instead of constants that are defined during
    runtime has the following benefits:
    
    - Naming can be made more consistent (and separated)
    - Speeding up requests where the constants are not needed
    - Benefit from Opcaching of class loading instead of dynamic runtime definition
    - Testing framework has less "bootstrap" to do
    
    This affects the following constants:
    - TYPO3_copyright_year
    - TYPO3_URL_GENERAL
    - TYPO3_URL_LICENSE
    - TYPO3_URL_EXCEPTION
    - TYPO3_URL_DONATE
    - TYPO3_URL_WIKI_OPCODECACHE
    
    The constants are now deprecated.
    
    In addition, the "Typo3Copyright" class is now called "TYPO3Information".
    
    Resolves: #89866
    Releases: master
    Change-Id: I607c90cb281179bda9875504d258daefd3471868
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62624
    
    
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    39abe760