Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceLocatorTestCase.php

function ServiceLocatorTestCase::getServiceLocator

5 calls to ServiceLocatorTestCase::getServiceLocator()
ServiceLocatorTestCase::testGet in vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php
ServiceLocatorTestCase::testGetDoesNotMemoize in vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php
ServiceLocatorTestCase::testHas in vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php
ServiceLocatorTestCase::testThrowsOnCircularReference in vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php
ServiceLocatorTestCase::testThrowsOnUndefinedInternalService in vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php

File

vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php, line 22

Class

ServiceLocatorTestCase

Namespace

Symfony\Contracts\Service\Test

Code

protected function getServiceLocator(array $factories) : ContainerInterface {
    return new class ($factories) implements ContainerInterface {
        use ServiceLocatorTrait;

};
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal