You are here

interface ContainerInterface in Service Container 7

Same name in this branch
  1. 7 src/DependencyInjection/ContainerInterface.php \Drupal\service_container\DependencyInjection\ContainerInterface
  2. 7 lib/Symfony/Component/DependencyInjection/ContainerInterface.php \Symfony\Component\DependencyInjection\ContainerInterface
  3. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerInterface.php \Symfony\Component\DependencyInjection\ContainerInterface
Same name and namespace in other branches
  1. 7.2 src/DependencyInjection/ContainerInterface.php \Drupal\service_container\DependencyInjection\ContainerInterface

Simple DI Container Interface used to get services and discover definitions.

Hierarchy

  • interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface
    • interface \Drupal\service_container\DependencyInjection\ContainerInterface extends \Symfony\Component\DependencyInjection\IntrospectableContainerInterface

Expanded class hierarchy of ContainerInterface

All classes that implement ContainerInterface

5 files declare their use of ContainerInterface
CachedContainerBuilderTest.php in tests/src/DependencyInjection/CachedContainerBuilderTest.php
Contains \Drupal\Tests\service_container\DependencyInjection\CachedContainerBuilderTest
ContainerAwarePluginManagerTest.php in tests/src/Plugin/ContainerAwarePluginManagerTest.php
Contains \Drupal\Tests\service_container\Plugin\ContainerAwarePluginManagerTest
ContainerBuilderTest.php in tests/src/DependencyInjection/ContainerBuilderTest.php
Contains \Drupal\Tests\service_container\DependencyInjection\ContainerBuilderTest
ContainerTest.php in tests/src/DependencyInjection/ContainerTest.php
Contains \Drupal\Tests\service_container\DependencyInjection\ContainerTest
KeyValueFactory.php in src/KeyValueStore/KeyValueFactory.php
Contains \Drupal\service_container\KeyValueStore\KeyValueFactory.

File

src/DependencyInjection/ContainerInterface.php, line 17
Contains \Drupal\service_container\DependencyInjection\ContainerInterface.

Namespace

Drupal\service_container\DependencyInjection
View source
interface ContainerInterface extends DiscoveryInterface, IntrospectableContainerInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 5
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 5
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 5