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

Breadcrumb

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

interface ServiceCollectionInterface

A ServiceProviderInterface that is also countable and iterable.

@author Kevin Bond <kevinbond@gmail.com>

@template-covariant T of mixed

@extends ServiceProviderInterface<T> @extends \IteratorAggregate<string, T>

Hierarchy

  • interface \Psr\Container\ContainerInterface
    • interface \Symfony\Contracts\Service\ServiceProviderInterface extends \Psr\Container\ContainerInterface
      • interface \Symfony\Contracts\Service\ServiceCollectionInterface extends \Symfony\Contracts\Service\ServiceProviderInterface \Symfony\Contracts\Service\Countable \Symfony\Contracts\Service\IteratorAggregate

Expanded class hierarchy of ServiceCollectionInterface

All classes that implement ServiceCollectionInterface

1 file declares its use of ServiceCollectionInterface
ServiceLocator.php in vendor/symfony/dependency-injection/ServiceLocator.php

File

vendor/symfony/service-contracts/ServiceCollectionInterface.php, line 24

Namespace

Symfony\Contracts\Service
View source
interface ServiceCollectionInterface extends ServiceProviderInterface, \Countable, \IteratorAggregate {

}
RSS feed
Powered by Drupal