Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
  2. 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()

Add service files.

Parameters

string[] $service_yamls: A list of service files.

1 call to DrupalKernel::addServiceFiles()
DrupalKernel::discoverServiceProviders in core/lib/Drupal/Core/DrupalKernel.php
Discovers available serviceProviders.

File

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

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected function addServiceFiles(array $service_yamls) {
  $this->serviceYamls['site'] = array_filter($service_yamls, 'file_exists');
}