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

Using the container outside of Masonite flow #237

Open
eaguad1337 opened this issue Oct 9, 2023 · 0 comments
Open

Using the container outside of Masonite flow #237

eaguad1337 opened this issue Oct 9, 2023 · 0 comments

Comments

@eaguad1337
Copy link
Member

eaguad1337 commented Oct 9, 2023

In docs it appears the following code:

from wsgi import container
from masonite import Queue

class SomeCommand:

    def handle(self):
        queue = container.make(Queue)
        queue.push(..)

But wsgi module doesn't has any "container" class. I think it should be replaced with the following code.

from masonite.container import Container
from masonite import Queue

class SomeCommand:

    def handle(self):
        queue = Container().make(Queue)
        queue.push(..)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant