Skip to content

Commit 249e69f

Browse files
author
Wazabii
committed
Guide
1 parent 670f662 commit 249e69f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Container, Factories and dependency injectors will help to make your PHP code mo
77
## Container
88
Containers allowing you to easily create and retrieve objects that are needed throughout your application.
99
```php
10+
use MaplePHP\Container\Container;
11+
$container = new Container();
1012
$container->set("YourClass", \YourNamespace\To\YourClass::class); // Bind "YourClass" to container and dependency injector
1113
$yourClass = $container->get("YourClass")->get(); // Will return "YourClass"
1214
//$yourClass->yourClassMehthod();

0 commit comments

Comments
 (0)