function KernelTestAttributeRouteDiscovery::__construct

Parameters

\Traversable<string, string|array<int, string>> $namespaces: An object implementing \Traversable containing root paths keyed by the corresponding namespace to look for controller implementations.

Overrides AttributeRouteDiscovery::__construct

File

core/tests/Drupal/KernelTests/KernelTestAttributeRouteDiscovery.php, line 16

Class

KernelTestAttributeRouteDiscovery
Discovers routes in a kernel test class using Symfony's Route attribute.

Namespace

Drupal\KernelTests

Code

public function __construct(protected readonly string $kernelTestClass) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.