We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670f662 commit 249e69fCopy full SHA for 249e69f
README.md
@@ -7,6 +7,8 @@ Container, Factories and dependency injectors will help to make your PHP code mo
7
## Container
8
Containers allowing you to easily create and retrieve objects that are needed throughout your application.
9
```php
10
+use MaplePHP\Container\Container;
11
+$container = new Container();
12
$container->set("YourClass", \YourNamespace\To\YourClass::class); // Bind "YourClass" to container and dependency injector
13
$yourClass = $container->get("YourClass")->get(); // Will return "YourClass"
14
//$yourClass->yourClassMehthod();
0 commit comments