Final Class Yiisoft\ErrorHandler\RendererProvider\CompositeRendererProvider
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
CompositeRendererProvider aggregates multiple RendererProviderInterface implementations.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| get() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $providers | Yiisoft\ |
|
public function __construct(RendererProviderInterface ...$providers)
{
$this->providers = $providers;
}
| public ?\ | ||
| $request | \ |
|
public function get(ServerRequestInterface $request): ?ThrowableRendererInterface
{
foreach ($this->providers as $provider) {
$renderer = $provider->get($request);
if ($renderer !== null) {
return $renderer;
}
}
return null;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.