@@ -14,46 +14,10 @@ Currently Axon is 2X faster than Express. :D please checkout [Axon Benchmarks](.
1414
1515[ Axon Documentation] ( https://axonjslabs.github.io/AxonJs/ )
1616
17- Latest change: (v0.13.0 )
17+ Latest change: (v0.13.1 )
1818
19- - Dependency injection
20- Fixed some problems and dependency injection system redesigned.
21- 1 . Register your dependency into the Axon core:
22-
23- ``` typescript
24- // class instance
25- core .registerDependencyValue (' dependencyName' , new DependencyClass (arg1 , arg2 ));
26-
27- // class with factory function (core will run factory function before injection process)
28- core .registerDependencyFactory (' dependencyName2' , () => new DependencyClass ());
29-
30- // function
31- core .registerDependencyValue (' dependencyName3' , dependencyFunction );
32-
33- // Also you can register dependencies with name aliases
34- core .registerDependencyValue ([' depClass' , ' classDep' , ' DB' ], new DependencyClass ());
35- ```
36-
37- - NeuronContainer service
38- Neuron Container is a service to create and handle dependency containers in your project .
39- Also Axon core is using Neuron Container for dependency injection feature .
40-
41- ` ` ` typescript
42- import { NeuronContainer } from '@axonlabs/core';
43-
44- const container = new NeuronContainer();
45- container.registerValue();
46- container.registerFactory();
47- container.register();
48- container.resolve();
49- container.use();
50- container.clone();
51- container.clearScope();
52- container.checkDependency();
53- container.override();
54- container.listDependencies();
55- container.inspect();
56- ` ` `
19+ - Axon core hardcode config problem
20+ - Some dependencies removed from project and the code and project structure improved.
5721
5822## Installation 📥
5923
0 commit comments