Same name and namespace in other branches
  1. 6.x developer/globals.php \conf
  2. 7.x developer/globals.php \conf
  3. 7.x authorize.php \conf
  4. 8.9.x core/globals.api.php \conf
  5. 9 core/globals.api.php \conf

Allows defining of site-specific service providers for the Drupal kernel.

To define a site-specific service provider class, use code like this:

$GLOBALS['conf']['container_service_providers']['MyClassName'] = 'Drupal\\My\\Namespace\\MyClassName';

See also

\Drupal\Core\DrupalKernel::$serviceProviderClasses

File

core/globals.api.php, line 55
These are the global variables that Drupal uses.

Code

global $conf;