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
  • Middleware
  • FrontendUserAuthenticator.php
Find file BlameHistoryPermalink
  • Benjamin Franzke's avatar
    [TASK] Use dependency injection in middlewares · f1bf354c
    Benjamin Franzke authored Jul 19, 2019 and Daniel Goerz's avatar Daniel Goerz committed Aug 06, 2019
    Use constructor injection for middleware dependencies, moving away
    from GeneralUtility::makeInstance based Singleton lookup.
    Dependencies which are already configured to be optionally
    injectable via constructor arguments (e.g. for unit tests) are
    changed to be required constructor arguments. Since the introduction of
    symfony dependency injection the fallback to GeneralUtility::makeInstance
    is no longer used – therefore it is dropped.
    
    Releases: master
    Resolves: #88800
    Change-Id: I6dbec2f91fc78c1b06dd179323fb7a4810c13baa
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61322
    
    
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
    Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    Reviewed-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
    Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    f1bf354c