Skip to content

Commit

Permalink
Add an example of calling merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-ivan authored Jan 9, 2018
1 parent 9524a01 commit f87b27f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ You can set a name which will be used to refer to container itself:
$container = new SD\DependencyInjection\Container([], 'container');
```

If you have several containers, you can create a new one by merging them:

```php
$mergedContainer = SD\DependencyInjection\Container::merge($container1, $container2);
```

Registering services
--------------------
Services are registered with ServiceInitializers:
Expand Down

0 comments on commit f87b27f

Please sign in to comment.