docs
docs copied to clipboard
Using the container outside of Masonite flow
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(..)