We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think it will be useful to have an ability to create lazy objects.
It might look like:
New methods:
class Injector { // ... public function makeGhost(string $class, array $arguments = []): object {} public function makeProxy(string $class, array $arguments = []): object {} }
A new parameter of the make method
make
enum Laziness { case Regular; // or Disable case Proxy; case Ghost; } class Injector { // ... public function make(string $class, array $arguments = [], Laziness $laziness = Laziness::Disable): object }
A new option:
$injector ->withLaziness(Laziness::Proxy) ->make(...)
But in this case the option won't affect $injector->invoke() (does make sense?)
$injector->invoke()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think it will be useful to have an ability to create lazy objects.
It might look like:
New methods:
A new parameter of the
make
methodA new option:
But in this case the option won't affect
$injector->invoke()
(does make sense?)The text was updated successfully, but these errors were encountered: