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

Breadcrumb

  1. Drupal Core 11.1.x
  2. 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

Code

global $conf;
RSS feed
Powered by Drupal