function ControllerResolver::allowControllers
Parameters
array<class-string> $types:
array<class-string> $attributes:
File
-
vendor/
symfony/ http-kernel/ Controller/ ControllerResolver.php, line 40
Class
- ControllerResolver
- This implementation uses the '_controller' request attribute to determine the controller to execute.
Namespace
Symfony\Component\HttpKernel\ControllerCode
public function allowControllers(array $types = [], array $attributes = []) : void {
foreach ($types as $type) {
$this->allowedControllerTypes[$type] = $type;
}
foreach ($attributes as $attribute) {
$this->allowedControllerAttributes[$attribute] = $attribute;
}
}