123/myapp/wsgi.py
2025-02-01 15:57:22 +08:00

14 lines
547 B
Python
Executable file

from masonite.foundation import Application, Kernel
from masonite.utils.location import base_path
from masonite.configuration import config
from Kernel import Kernel as ApplicationKernel
"""Start The Application Instance."""
application = Application(base_path())
"""Now Bind important providers needed to make the framework work."""
application.register_providers(Kernel, ApplicationKernel)
"""Now Bind important application specific providers needed to make the application work."""
application.add_providers(*config("providers.providers"))