protected DrupalKernel::initializeServiceProviders()
Registers all service providers to the kernel.
Throws
\LogicException
File
- core/lib/Drupal/Core/DrupalKernel.php, line 1263
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\Core
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | protected function initializeServiceProviders() { $this ->discoverServiceProviders(); $this ->serviceProviders = array ( 'app' => array (), 'site' => array (), ); foreach ( $this ->serviceProviderClasses as $origin => $classes ) { foreach ( $classes as $name => $class ) { if (! is_object ( $class )) { $this ->serviceProviders[ $origin ][ $name ] = new $class (); } else { $this ->serviceProviders[ $origin ][ $name ] = $class ; } } } } |
Please login to continue.