README.md in smart_injection-0.0.0.alpha2 vs README.md in smart_injection-0.0.0.alpha3

- old
+ new

@@ -6,11 +6,11 @@ ## Major Features - `method-injection` strategy - `soon:` constructor injection strategy; -- `soon:` attribute injection strategy; +- `soon:` property injection strategy; - realized as a mixin; - instance-method dependency injection; - class-method dependency injection; - multiple IoC-container registration; - static and dynamic bindings; @@ -78,21 +78,21 @@ # --- or --- include SmartCore::Injection(AppContainer, ServiceContainer) # --- or --- - include SmartCore::Container + include SmartCore::Injection register_container(AppContainer, ServiceContainer) # import dependencies to an instance - import { db: 'data_storage.main' }, bind: :dynamic, access: :private - import { rnd: 'rands.alphanum' }, bind: :static, memoize: true + import({ db: 'data_storage.main' }, bind: :dynamic, access: :private) + import({ rnd: 'rands.alphanum' }, bind: :static, memoize: true) # import dependencies to a class - import_static { cache: 'data_storage.cache', hexer: 'rands.hex' }, bind: :static + import_static({ cache: 'data_storage.cache', hexer: 'rands.hex' }, bind: :static) # import from a non-registered container - import { phone_client: 'phone_clients.nexmo' }, from: GlobalContainer + import({ phone_client: 'phone_clients.nexmo' }, from: GlobalContainer) def call db # => returns data_storage.main rnd # => returns rands.alphanum self.class.cache # => returns data_storage.cache