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 a231f17 commit d938523Copy full SHA for d938523
README.md
@@ -31,6 +31,7 @@ interface StorageInterface
31
public function store(mixed $data): bool;
32
}
33
34
+#[Provides('storage')]
35
#[Provides(StorageInterface::class)]
36
#[Singleton]
37
class Storage implements StorageInterface
@@ -63,6 +64,7 @@ $container->addAlias(StorageInterface::class, Storage::class);
63
64
65
//Use this instead:
66
//$container->loadDefinitionsFromDirectory($directory, $namespace); //Loads annotations from classes declared in a PSR4 directory
67
+//var_dump($container->get('storage')->store($data));
68
69
var_dump($container->get(MyController::class)->save()); //bool(true)
70
```
0 commit comments