From d0d55851896b05d5feaa666845ca67ff6b1bb974 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Fri, 10 Nov 2023 19:00:11 +0000 Subject: [PATCH 1/2] Updated readme Signed-off-by: Tom Wright --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 83fec22..efe271e 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,17 @@ $testObect = $slingshot->instantiate(Test::class, [ ]); ``` +Objects can be added to Slingshot by type for reference matching: + +```php +$object = new Test(...); +$slingshot->addType($object); + +$slingshot->invoke(function(Test $test) { + // ... +}); +``` + ## Licensing Slingshot is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text. From 3b560b912dc30990d430924ea944328b457e56b4 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Fri, 10 Nov 2023 19:00:20 +0000 Subject: [PATCH 2/2] Updated changelog Signed-off-by: Tom Wright --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b050b9e..e2644bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +## v0.1.1 (2023-11-10) * Added object type dictionary ## v0.1.0 (2023-11-10)