function AutowireTest::getCoreServiceFiles
Return a list of core service YAML files.
Return value
string[] An array of filenames.
4 calls to AutowireTest::getCoreServiceFiles()
- AutowireTest::testCoreAutowiring in core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php - Tests that core services have aliases correctly defined where possible.
- AutowireTest::testCoreControllerAutowiring in core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php - Tests that core controllers are autowired where possible.
- AutowireTest::testCoreServiceAliases in core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php - Tests that core services have aliases correctly defined where possible.
- AutowireTest::testCoreServiceAliasInterfaces in core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php - Tests that core service aliases match the interfaces they map to.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php, line 274
Class
- AutowireTest
- Tests auto-wiring services.
Namespace
Drupal\KernelTests\Core\DependencyInjectionCode
private function getCoreServiceFiles() {
$filenames = array_map(fn($module) => "core/modules/{$module[0]}/{$module[0]}.services.yml", $this->coreModuleListDataProvider());
$filenames[] = 'core/core.services.yml';
return array_filter($filenames, 'file_exists');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.