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

How to use with php-di? #85

Open
raizdev opened this issue Jan 15, 2023 · 1 comment
Open

How to use with php-di? #85

raizdev opened this issue Jan 15, 2023 · 1 comment

Comments

@raizdev
Copy link

raizdev commented Jan 15, 2023

Question,

How to use this with PHP-DI for example?

return [ 'middlewares' => [ autowire(ErrorHandlingMiddleware::class), autowire(ClaimMiddleware::class) ]

I tried but i'm not able to set the options like this way

@tuupola
Copy link
Owner

tuupola commented Jan 15, 2023

I do not use PHP-DI but looking at the docs it seems like you need to use something called "definitions":

https://php-di.org/doc/autowiring.html
https://php-di.org/doc/php-definitions.html

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

No branches or pull requests

2 participants