Skip to content

Commit

Permalink
Remove Script Injector section from README
Browse files Browse the repository at this point in the history
The "Script Injector" section was deleted from the README.md file as it was no longer relevant. It had become outdated and was causing some confusion for users, hence its removal ensures that the documentation is more
  • Loading branch information
koriym committed May 23, 2024
1 parent d3f3f5d commit 91dcb03
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@

Ray.Compiler compiles Ray.Di bindings into PHP code, providing a performance boost that makes Dependency Injection couldn't be any faster.

## Script Injector

`ScriptInjector` has the same interface as Ray.Di Injector; whereas Ray.Di Injector resolves dependencies based on memory bindings, ScriptInjector executes pre-compiled PHP code and is faster.

Ray.Di injector
```php
$injector = new Injector(new CarModule); // Ray.Di injector
```

Ray.Compiler injector
```php
$injector = new ScriptInjector($tmpDir, fn => new CarModule);
Expand Down

0 comments on commit 91dcb03

Please sign in to comment.