error-handler icon indicating copy to clipboard operation
error-handler copied to clipboard

Remove `Yiisoft\ErrorHandler\Factory\ThrowableResponseFactory`

Open vjik opened this issue 8 months ago • 0 comments

It needs to remove deprecated Yiisoft\ErrorHandler\Factory\ThrowableResponseFactory and change configuration:

ThrowableResponseFactoryInterface::class => [
    'class' => \Yiisoft\ErrorHandler\ThrowableResponseFactory::class,
    '__construct()' => [
        'rendererProvider' => DynamicReference::to(
            static fn(ContainerInterface $container) => new CompositeRendererProvider(
                new HeadRendererProvider(),
                new ContentTypeRendererProvider($container),
            )
        ),
    ],
],

vjik avatar Apr 16 '25 04:04 vjik