orionis 0.72.0__py3-none-any.whl → 0.75.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.72.0"
8
+ VERSION = "0.75.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
orionis/luminate/app.py CHANGED
@@ -3,7 +3,7 @@ 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_provider import EnvironmentProvider
6
+ from orionis.luminate.providers.environment.environment__service_provider import EnvironmentProvider
7
7
 
8
8
  class Application(metaclass=SingletonMeta):
9
9
 
@@ -3,11 +3,12 @@ from orionis.luminate.services.config.config_service import ConfigService
3
3
 
4
4
  class ConfigServiceProvider(ServiceProvider):
5
5
 
6
- def register(self,) -> None:
6
+ def register(self, config: dict = {}) -> None:
7
7
  """
8
8
  Registers services or bindings into the given container.
9
9
  """
10
- self._container_id = self.app.scoped(ConfigService)
10
+ config = ConfigService(config)
11
+ self._container_id = self.app.instance(config)
11
12
 
12
13
  def boot(self,) -> None:
13
14
  """
@@ -16,4 +17,4 @@ class ConfigServiceProvider(ServiceProvider):
16
17
  This method is intended to be overridden by subclasses to perform
17
18
  any necessary bootstrapping or initialization tasks.
18
19
  """
19
- self.app.make(self._container_id)
20
+ pass
@@ -1,7 +1,7 @@
1
1
  from orionis.luminate.providers.service_provider import ServiceProvider
2
2
  from orionis.luminate.services.environment.environment_service import EnvironmentService
3
3
 
4
- class EnvironmentProvider(ServiceProvider):
4
+ class EnvironmentServiceProvider(ServiceProvider):
5
5
 
6
6
  def register(self) -> None:
7
7
  """
@@ -1,18 +1,16 @@
1
1
  from typing import Any, Optional
2
2
  from orionis.contracts.services.config.i_config_service import IConfigService
3
- from orionis.luminate.container.container import Container
4
3
 
5
4
  class ConfigService(IConfigService):
6
5
 
7
- def __init__(self, container: Container) -> None:
6
+ def __init__(self, config: dict = {}) -> None:
8
7
  """
9
8
  Initializes the ConfigService with the provided configuration.
10
9
 
11
10
  Args:
12
11
  config (dict): A dictionary containing configuration settings.
13
12
  """
14
- self.container = container
15
- self._config = self.container._config
13
+ self._config = config
16
14
 
17
15
  def set(self, key: str, value: Any) -> None:
18
16
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.72.0
3
+ Version: 0.75.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -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=qoKw9PXLHyVH-BLmh4czvAvZJgLFRSl8LNlap7VLELE,1386
3
+ orionis/framework.py,sha256=CqzgScayUpWRuSpY8sR2q0bTl6TKa3Ruu8ok__zK6Dg,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=MRB7235NLj2gKba1xqScpYiTs87nowllTIpVKXtOXVs,2682
59
+ orionis/luminate/app.py,sha256=by8kNooyaAZ-KYiwPigyMhiywXbzPUumDVf1jqxODhY,2691
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=MDUdswBE3llDyTkpWnBnLACXs5lgEBHyVHENnwBtobE,660
122
+ orionis/luminate/providers/config/config_service_provider.py,sha256=QRwMNmZaSTjFWFpqZ7ObN-UtjpP1Qoq4uWkg5nnlEHg,684
123
123
  orionis/luminate/providers/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
- orionis/luminate/providers/environment/environment_provider.py,sha256=k5Cgk59UNKliFN1zS7ghUyva03jg00QhJxWYhg-6JUQ,679
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=TZa3WZtDKEW6p0bMktzMXn85cOQy-q21myiYu3rZA34,2147
129
+ orionis/luminate/services/config/config_service.py,sha256=Hfd-Z1vK8fG-yEDgccDVubf7CGS2lJIs9XzyfS8chc4,2032
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.72.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
157
- orionis-0.72.0.dist-info/METADATA,sha256=VbZCB0SHkobPg1dIxZA2g6Or8nHd8cjrzOkf62QRV7o,2978
158
- orionis-0.72.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
159
- orionis-0.72.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
160
- orionis-0.72.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
161
- orionis-0.72.0.dist-info/RECORD,,
156
+ orionis-0.75.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
157
+ orionis-0.75.0.dist-info/METADATA,sha256=aX9H3OtFvUwJbt4aQoRo1X7TUhiCDUQfcXu4N_Vds0k,2978
158
+ orionis-0.75.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
159
+ orionis-0.75.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
160
+ orionis-0.75.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
161
+ orionis-0.75.0.dist-info/RECORD,,