Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
digitv committed Jul 11, 2018
1 parent 2e1b46e commit 6e8f25d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Re-action DI
### Dependency injection container for re-action framework
####Usage
#### Usage
```php
//Creation
$container = new \Reaction\DI\Container([
Expand All @@ -10,6 +10,8 @@ $container = new \Reaction\DI\Container([
'property_1' => 1,
'property_2' => InstanceOf('Component\Class\Path2'),
],
//Alias
'componentAlias' => 'componentId',
],
'singletons' => [
'componentId2' => 'componentId2',
Expand Down

0 comments on commit 6e8f25d

Please sign in to comment.