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

[3.x] Add middleware self-factory #120

Merged
merged 2 commits into from
Jul 27, 2019

Conversation

adriansuter
Copy link
Contributor

This PR addresses #118.

Remember that if a user would like to use this self-factory, he/she needs to add Twig to the container before calling the method.

The problem is, that in the process()-method Twig would be added again to the container. Should we check and avoid that?

@l0gicgate l0gicgate added this to the 3.0.0-beta milestone Jul 27, 2019
@l0gicgate l0gicgate merged commit a0193b3 into slimphp:3.x Jul 27, 2019
@l0gicgate
Copy link
Member

Accidental merge 😂 I didn't notice the WIP.

@adriansuter adriansuter changed the title [WIP] [3.x] Add middleware self-factory [3.x] Add middleware self-factory Jul 27, 2019
@adriansuter
Copy link
Contributor Author

No worries

@adriansuter
Copy link
Contributor Author

What do you think about checking the existence of twig in the container before adding it to the container during the process method?

@adriansuter adriansuter deleted the patch-middlewareCreator branch July 27, 2019 18:06
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 this pull request may close these issues.

None yet

2 participants