orionis 0.582.0__py3-none-any.whl → 0.584.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orionis/console/core/reactor.py +4 -18
- orionis/container/facades/facade.py +2 -3
- orionis/foundation/application.py +181 -319
- orionis/foundation/config/roots/paths.py +56 -151
- orionis/foundation/contracts/application.py +742 -401
- orionis/metadata/framework.py +1 -1
- orionis/services/file/contracts/directory.py +43 -199
- orionis/services/file/directory.py +58 -197
- {orionis-0.582.0.dist-info → orionis-0.584.0.dist-info}/METADATA +1 -1
- {orionis-0.582.0.dist-info → orionis-0.584.0.dist-info}/RECORD +13 -14
- orionis/app.py +0 -17
- {orionis-0.582.0.dist-info → orionis-0.584.0.dist-info}/WHEEL +0 -0
- {orionis-0.582.0.dist-info → orionis-0.584.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.582.0.dist-info → orionis-0.584.0.dist-info}/top_level.txt +0 -0
orionis/console/core/reactor.py
CHANGED
@@ -84,7 +84,8 @@ class Reactor(IReactor):
|
|
84
84
|
self.__load__custom_commands: bool = True
|
85
85
|
|
86
86
|
# Flag to track if fluent commands have been loaded
|
87
|
-
self.
|
87
|
+
self.__loadFluentCommands()
|
88
|
+
self.__load_fluent_commands: bool = True
|
88
89
|
|
89
90
|
def __loadCommands(self) -> None:
|
90
91
|
"""
|
@@ -136,21 +137,6 @@ class Reactor(IReactor):
|
|
136
137
|
self.__loadFluentCommands()
|
137
138
|
self.__load_fluent_commands = True
|
138
139
|
|
139
|
-
# Check if commands have already been loaded to prevent duplicate loading
|
140
|
-
if not self.__load__core_commands:
|
141
|
-
self.__loadCoreCommands()
|
142
|
-
self.__load__core_commands = True
|
143
|
-
|
144
|
-
# Load custom user-defined commands if not already loaded
|
145
|
-
if not self.__load__custom_commands:
|
146
|
-
self.__loadCustomCommands()
|
147
|
-
self.__load__custom_commands = True
|
148
|
-
|
149
|
-
# Load fluent interface defined commands if not already loaded
|
150
|
-
if not self.__load_fluent_commands:
|
151
|
-
self.__loadFluentCommands()
|
152
|
-
self.__load_fluent_commands = True
|
153
|
-
|
154
140
|
def __loadFluentCommands(self) -> None:
|
155
141
|
"""
|
156
142
|
Loads and registers commands defined using the fluent interface.
|
@@ -179,7 +165,7 @@ class Reactor(IReactor):
|
|
179
165
|
return
|
180
166
|
|
181
167
|
# Get the project root directory for module path resolution
|
182
|
-
root_path = str(self.__app.
|
168
|
+
root_path = str(self.__app.path('root'))
|
183
169
|
|
184
170
|
# List all .py files in the routes directory and subdirectories
|
185
171
|
for current_directory, _, files in os.walk(routes_path):
|
@@ -377,7 +363,7 @@ class Reactor(IReactor):
|
|
377
363
|
|
378
364
|
# Ensure the provided commands_path is a valid directory
|
379
365
|
commands_path = (Path(self.__app.path('console')) / 'commands').resolve()
|
380
|
-
root_path = str(self.__app.
|
366
|
+
root_path = str(self.__app.path('root'))
|
381
367
|
|
382
368
|
# Iterate through the command path and load command modules
|
383
369
|
for current_directory, _, files in os.walk(commands_path):
|
@@ -1,7 +1,6 @@
|
|
1
1
|
from typing import Any
|
2
|
-
from orionis.app import Orionis
|
3
2
|
from orionis.container.exceptions import OrionisContainerAttributeError, OrionisContainerException
|
4
|
-
from orionis.foundation.application import IApplication
|
3
|
+
from orionis.foundation.application import IApplication, Application
|
5
4
|
from typing import TypeVar
|
6
5
|
|
7
6
|
T = TypeVar('T')
|
@@ -35,7 +34,7 @@ class FacadeMeta(type):
|
|
35
34
|
class Facade(metaclass=FacadeMeta):
|
36
35
|
|
37
36
|
# Application instance to resolve services
|
38
|
-
_app: IApplication =
|
37
|
+
_app: IApplication = Application()
|
39
38
|
|
40
39
|
@classmethod
|
41
40
|
def getFacadeAccessor(cls) -> str:
|