Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorHandlerMiddleware can't be easily injected without autowire due to bool param #295

Closed
vvval opened this issue Sep 17, 2020 · 0 comments · Fixed by #296
Closed

ErrorHandlerMiddleware can't be easily injected without autowire due to bool param #295

vvval opened this issue Sep 17, 2020 · 0 comments · Fixed by #296
Assignees

Comments

@vvval
Copy link
Member

vvval commented Sep 17, 2020

ErrorHandlerMiddleware can't be easily injected without autowire due to bool param:

 [Spiral\Core\Exception\Container\ArgumentException]                                                         
 Unable to resolve 'suppressErrors' argument in 'Spiral\Http\Middleware\ErrorHandlerMiddleware::__construct'

I suggest to replace it with an instance of wrapper class

@vvval vvval self-assigned this Sep 17, 2020
vvval pushed a commit that referenced this issue Sep 17, 2020
@vvval vvval linked a pull request Sep 17, 2020 that will close this issue
vvval pushed a commit that referenced this issue Sep 17, 2020
SerafimArts added a commit that referenced this issue Sep 17, 2020
SerafimArts added a commit that referenced this issue Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant