orionis 0.172.0__py3-none-any.whl → 0.173.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.172.0"
8
+ VERSION = "0.173.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -409,24 +409,18 @@ class Container(IContainer):
409
409
  if abstract_or_alias in self._singleton_services:
410
410
  if abstract_or_alias not in self._singleton_instances:
411
411
  service = self._singleton_services[abstract_or_alias]
412
- self._singleton_instances[abstract_or_alias] = (
413
- await self._resolve(service['concrete']) if service['async']
414
- else self._resolve(service['concrete'])
415
- )
412
+ self._singleton_instances[abstract_or_alias] = await self._resolve(service['concrete'])
416
413
  return self._singleton_instances[abstract_or_alias]
417
414
 
418
415
  if abstract_or_alias in self._scoped_services:
419
416
  if abstract_or_alias not in self._scoped_instances:
420
417
  service = self._scoped_services[abstract_or_alias]
421
- self._scoped_instances[abstract_or_alias] = (
422
- await self._resolve(service['concrete']) if service['async']
423
- else self._resolve(service['concrete'])
424
- )
418
+ self._scoped_instances[abstract_or_alias] = await self._resolve(service['concrete'])
425
419
  return self._scoped_instances[abstract_or_alias]
426
420
 
427
421
  if abstract_or_alias in self._transient_services:
428
422
  service = self._transient_services[abstract_or_alias]
429
- return await self._resolve(service['concrete']) if service['async'] else self._resolve(service['concrete'])
423
+ return await self._resolve(service['concrete'])
430
424
 
431
425
  raise OrionisContainerException(f"No binding found for '{abstract_or_alias}' in the container.")
432
426
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.172.0
3
+ Version: 0.173.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=oXY5UYvtalP996h7z5iaEc7z5b1hyFWXrLPrvtoxWcU,1368
3
- orionis/framework.py,sha256=0Z8c97wkuHqUeAg0s2hIz1AV9PXfJ5bxHS9fu3p3yPM,1387
3
+ orionis/framework.py,sha256=WHcCbUUUbTcgaK61u_2u4dtGNDPUS8UxAmQzYi8leBs,1387
4
4
  orionis/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  orionis/installer/manager.py,sha256=SiypGJ2YiFeWyK_4drkheHUd42oS2CH63PNuxiw6Cps,3139
6
6
  orionis/installer/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -44,7 +44,7 @@ orionis/luminate/console/output/executor.py,sha256=91722rNiAsKpuq5QYiI7Aqw_7ccmn
44
44
  orionis/luminate/console/output/progress_bar.py,sha256=ZiPGcUaN3EINeLRKgLGtS1GAb1XWlCDx7wFQ7Ff0hqY,3096
45
45
  orionis/luminate/console/output/styles.py,sha256=2e1_FJdNpKaVqmdlCx-udzTleH_6uEFE9_TjH7T1ZUk,3696
46
46
  orionis/luminate/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
- orionis/luminate/container/container.py,sha256=SL8QP2upb5fNm5XCCcWTSLpnDTiQgy3CgD6oPjGRC6U,18627
47
+ orionis/luminate/container/container.py,sha256=9xdODX1h4YK6V-THrfgm5XN95imobExzrb4bllizrWQ,18321
48
48
  orionis/luminate/container/container_integrity.py,sha256=lFQ41IN_3Z0SbtJzZ_9jewoaUI4xlsBEFXPfn-p82uI,7976
49
49
  orionis/luminate/container/exception.py,sha256=ap1SqYEjQEEHXJJTNmL7V1jrmRjgT5_7geZ95MYkhMA,1691
50
50
  orionis/luminate/container/lifetimes.py,sha256=2lbdiV7R2WlJf1cLD6eBxLnJud_lZvX1IhQH2Djy3Ww,375
@@ -181,9 +181,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
181
181
  tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
182
182
  tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
183
183
  tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
184
- orionis-0.172.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
185
- orionis-0.172.0.dist-info/METADATA,sha256=TiEzcDod0uywNRGUG6InIBLe-Jbde4bvN8vIr4DR0Rk,2970
186
- orionis-0.172.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
- orionis-0.172.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
188
- orionis-0.172.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
189
- orionis-0.172.0.dist-info/RECORD,,
184
+ orionis-0.173.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
185
+ orionis-0.173.0.dist-info/METADATA,sha256=vRUBkBlNsC8nZ8ZJbluUyXVDcID12UyX0CsfWeZFZ90,2970
186
+ orionis-0.173.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
+ orionis-0.173.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
188
+ orionis-0.173.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
189
+ orionis-0.173.0.dist-info/RECORD,,