docs icon indicating copy to clipboard operation
docs copied to clipboard

Using the container outside of Masonite flow

Open eaguad1337 opened this issue 2 years ago • 0 comments

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(..)

eaguad1337 avatar Oct 09 '23 03:10 eaguad1337