orionis 0.75.0__py3-none-any.whl → 0.76.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/framework.py +1 -1
- orionis/luminate/app.py +14 -2
- orionis/luminate/providers/config/config_service_provider.py +3 -4
- orionis/luminate/services/config/config_service.py +3 -2
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/METADATA +1 -1
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/RECORD +10 -10
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/LICENCE +0 -0
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/WHEEL +0 -0
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.75.0.dist-info → orionis-0.76.0.dist-info}/top_level.txt +0 -0
orionis/framework.py
CHANGED
orionis/luminate/app.py
CHANGED
@@ -3,7 +3,9 @@ from orionis.luminate.bootstrap.config_bootstrapper import ConfigBootstrapper
|
|
3
3
|
from orionis.luminate.bootstrap.command_bootstrapper import CommandsBootstrapper
|
4
4
|
from orionis.luminate.bootstrap.environment_bootstrapper import EnvironmentBootstrapper
|
5
5
|
from orionis.luminate.patterns.singleton import SingletonMeta
|
6
|
-
from orionis.luminate.providers.environment.environment__service_provider import
|
6
|
+
from orionis.luminate.providers.environment.environment__service_provider import EnvironmentServiceProvider
|
7
|
+
from orionis.luminate.providers.config.config_service_provider import ConfigServiceProvider
|
8
|
+
from orionis.luminate.services.config.config_service import ConfigService
|
7
9
|
|
8
10
|
class Application(metaclass=SingletonMeta):
|
9
11
|
|
@@ -27,10 +29,13 @@ class Application(metaclass=SingletonMeta):
|
|
27
29
|
# Registrrar los comandos en el contenedor
|
28
30
|
self._registerCommands()
|
29
31
|
|
32
|
+
# Cargar de provedores core
|
33
|
+
self._loadServiceProviderCore()
|
34
|
+
|
30
35
|
def _loadServiceProviderEnvironment(self):
|
31
36
|
|
32
37
|
# Cargar el proveedor de entorno
|
33
|
-
_environment_provider =
|
38
|
+
_environment_provider = EnvironmentServiceProvider(app=self.container)
|
34
39
|
_environment_provider.register()
|
35
40
|
_environment_provider.boot()
|
36
41
|
|
@@ -57,3 +62,10 @@ class Application(metaclass=SingletonMeta):
|
|
57
62
|
for command in self._commands:
|
58
63
|
_key_instance_container = self.container.bind(self._commands[command].get('concrete'))
|
59
64
|
self.container.alias(alias=command, concrete=_key_instance_container)
|
65
|
+
|
66
|
+
def _loadServiceProviderCore(self):
|
67
|
+
|
68
|
+
# Cargar el proveedor de configuracion
|
69
|
+
_environment_provider = ConfigServiceProvider(app=self.container)
|
70
|
+
_environment_provider.register(config=self._config)
|
71
|
+
_environment_provider.boot()
|
@@ -3,12 +3,11 @@ from orionis.luminate.services.config.config_service import ConfigService
|
|
3
3
|
|
4
4
|
class ConfigServiceProvider(ServiceProvider):
|
5
5
|
|
6
|
-
def register(self
|
6
|
+
def register(self) -> None:
|
7
7
|
"""
|
8
8
|
Registers services or bindings into the given container.
|
9
9
|
"""
|
10
|
-
|
11
|
-
self._container_id = self.app.instance(config)
|
10
|
+
self._container_id = self.app.scoped(ConfigService)
|
12
11
|
|
13
12
|
def boot(self,) -> None:
|
14
13
|
"""
|
@@ -17,4 +16,4 @@ class ConfigServiceProvider(ServiceProvider):
|
|
17
16
|
This method is intended to be overridden by subclasses to perform
|
18
17
|
any necessary bootstrapping or initialization tasks.
|
19
18
|
"""
|
20
|
-
|
19
|
+
self.app.make(self._container_id)
|
@@ -1,16 +1,17 @@
|
|
1
1
|
from typing import Any, Optional
|
2
2
|
from orionis.contracts.services.config.i_config_service import IConfigService
|
3
|
+
from orionis.luminate.bootstrap.config_bootstrapper import ConfigBootstrapper
|
3
4
|
|
4
5
|
class ConfigService(IConfigService):
|
5
6
|
|
6
|
-
def __init__(self,
|
7
|
+
def __init__(self, config_bootstrapper: ConfigBootstrapper) -> None:
|
7
8
|
"""
|
8
9
|
Initializes the ConfigService with the provided configuration.
|
9
10
|
|
10
11
|
Args:
|
11
12
|
config (dict): A dictionary containing configuration settings.
|
12
13
|
"""
|
13
|
-
self._config =
|
14
|
+
self._config = config_bootstrapper.get()
|
14
15
|
|
15
16
|
def set(self, key: str, value: Any) -> None:
|
16
17
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
orionis/cli_manager.py,sha256=0bM-hABXJSoPGuvEgnqeaj9qcLP8VjTQ3z9Mb0TSEUI,1381
|
3
|
-
orionis/framework.py,sha256=
|
3
|
+
orionis/framework.py,sha256=TvE21D5cI0XQBpgMJ_MP17inMntH5gbx3WKQppywVV8,1386
|
4
4
|
orionis/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
orionis/contracts/bootstrap/i_command_bootstrapper.py,sha256=cfpYWSlNhOY1q_C9o0H7F381OoM0Oh0qaeqP-c85nzk,2457
|
6
6
|
orionis/contracts/bootstrap/i_config_bootstrapper.py,sha256=d2TXT74H2fCBbzWgrt9-ZG11S_H_YPQOEcJoIOrsgb0,4462
|
@@ -56,7 +56,7 @@ orionis/installer/installer_manager.py,sha256=Hb6T0bmSl39T30maY-nUWkrLhG77JdrKe4
|
|
56
56
|
orionis/installer/installer_output.py,sha256=LeKxzuXpnHOKbKpUtx3tMGkCi2bGcPV1VNnfBxwfxUU,7161
|
57
57
|
orionis/installer/installer_setup.py,sha256=c2HtVklSa-2_-YVonc7fwtoK-RTDqBS2Ybvbekgfqtc,6970
|
58
58
|
orionis/luminate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
59
|
-
orionis/luminate/app.py,sha256=
|
59
|
+
orionis/luminate/app.py,sha256=Bzix0Qit32MyGHbJNuK799WKwi0vktY0Z4s0-1deaGE,3218
|
60
60
|
orionis/luminate/app_context.py,sha256=XREVkOHU6aP8UB2daA2QbFcOCB8HRmcGXjVbrlW1AHQ,1827
|
61
61
|
orionis/luminate/bootstrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
62
62
|
orionis/luminate/bootstrap/command_bootstrapper.py,sha256=OU0hDMtG1xqVbvCneq4C5mlOUu9OmfkxqbvGH59QsUw,6919
|
@@ -119,14 +119,14 @@ orionis/luminate/pipelines/cli_pipeline.py,sha256=xpdwxArZrYqaeo4h375RQwY329V14S
|
|
119
119
|
orionis/luminate/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
120
120
|
orionis/luminate/providers/service_provider.py,sha256=Ave9V10KPVCI6bt3HwJ51322P-_RnQuHXkC-ltlAOOA,1537
|
121
121
|
orionis/luminate/providers/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
122
|
-
orionis/luminate/providers/config/config_service_provider.py,sha256=
|
122
|
+
orionis/luminate/providers/config/config_service_provider.py,sha256=NLKB3Vcu4kqZ0WyeImMG3CsclSu_P4aWs6yXitcv474,659
|
123
123
|
orionis/luminate/providers/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
124
124
|
orionis/luminate/providers/environment/environment__service_provider.py,sha256=Ljqcz7P8K6wYwigUnkzMMQZvBtZrPDKP3HHO-xSaoVg,686
|
125
125
|
orionis/luminate/providers/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
126
126
|
orionis/luminate/providers/log/log_service_provider.py,sha256=tcWDEI-fubi1mWSS-IKiRReuc0pRMHpxvbvuDgs2Uy0,654
|
127
127
|
orionis/luminate/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
128
128
|
orionis/luminate/services/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
129
|
-
orionis/luminate/services/config/config_service.py,sha256=
|
129
|
+
orionis/luminate/services/config/config_service.py,sha256=LTMDuzrGqsTlOvkgk0BMBjMZQ3kWma-vr4PnR5FNZUU,2153
|
130
130
|
orionis/luminate/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
131
131
|
orionis/luminate/services/environment/environment_service.py,sha256=IgrfzLELNhnEuz9rn2lYBvv3JQrgiNCGLA34pQ__nxY,4136
|
132
132
|
orionis/luminate/services/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -153,9 +153,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
153
153
|
tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
154
154
|
tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
|
155
155
|
tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
|
156
|
-
orionis-0.
|
157
|
-
orionis-0.
|
158
|
-
orionis-0.
|
159
|
-
orionis-0.
|
160
|
-
orionis-0.
|
161
|
-
orionis-0.
|
156
|
+
orionis-0.76.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
157
|
+
orionis-0.76.0.dist-info/METADATA,sha256=-Cg0DOLQuRN2_QfBFPMnut8dmBXGCrBD3G5puzEZlZs,2978
|
158
|
+
orionis-0.76.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
159
|
+
orionis-0.76.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
|
160
|
+
orionis-0.76.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
161
|
+
orionis-0.76.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|