Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T TYPO3.CMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • accessibilityaccessibility
  • TYPO3.CMS
  • Repository
Switch branch/tag
  • TYPO3.CMS
  • ..
  • Container
  • Container.php
Find file BlameHistoryPermalink
  • Christian Kuhn's avatar
    [BUGFIX] Extbase ObjectManager can inject PSR ContainerInterface · db551e17
    Christian Kuhn authored Jul 21, 2021
    Legacy Extbase ObjectManager has a symfony DI compiler pass
    that registers all DI registered "Foo"Interface aliases
    via registerImplementation in Extbase container, too.
    
    This however only works if the target is a class.
    The Psr/Container/ContainerInterface is a magic
    'service_container' alias, though. In turn, ObjectManager
    fails to inject Psr/Container/ContainerInterface.
    
    The patch adds this interface explicitly and adds a
    functional test to make sure it works.
    
    We target that patch to both v11 and v10 to simplify
    the transition from ObjectManager to symfony based DI.
    
    Resolves: #94608
    Related: #90803
    Related: #94453
    Releases: master, 10.4
    Change-Id: I282240548d8d8c571314dd433653dc30d1e0dad4
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70017
    
    
    Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
    Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    db551e17