DrupalKernel::$serviceProviderClasses

Same name in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::serviceProviderClasses
  2. 8.9.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::serviceProviderClasses
  3. 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::serviceProviderClasses

List of discovered service provider class names or objects.

This is a nested array whose top-level keys are 'app' and 'site', denoting the origin of a service provider. Site-specific providers have to be collected separately, because they need to be processed last, so as to be able to override services from application service providers.

Allowing objects is for example used to allow \Drupal\KernelTests\KernelTestBase to register itself as service provider.

Type: array

File

core/lib/Drupal/Core/DrupalKernel.php, line 225

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected $serviceProviderClasses;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.