You are here

protected function DrupalKernel::addServiceFiles in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
  2. 10 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 1612

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');
}