Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.
This repository was archived by the owner on May 23, 2022. It is now read-only.

exceptionRenderer => false unintended behavior #29

@PhantomWatson

Description

@PhantomWatson

It's my understanding that the exceptionRenderer => false configuration setting was meant to prevent the plugin from having any effect on exception rendering, but it actually switches your app from any custom exception rendering class to Cake\Error\ExceptionRenderer.

Until this is patched, this change can be prevented by explicitly setting the custom exception renderer class, e.g.

'Cors' => [
    'exceptionRenderer' => 'App\Error\AppExceptionRenderer'
]

or

'Cors' => [
    'exceptionRenderer' => AppExceptionRenderer::class
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions