Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15258

Services collection: adds a method to get a service by its class name

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.3
    • 3.3.0-b1
    • None
    • None

    Description

      The phpbb\di\service_collection class is aware of the class of each service. We should add a method to get a service from the collection using its class name

      One limitation: if 2 services are of the asked class, we throw an exception

      Attachments

        Activity

          People

            nicofuma nicofuma
            nicofuma nicofuma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: