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
Currently Reference has 2 constructors, 1 static one and 1 non-static one.
Reference
I imagine the static one was added mostly for syntactic sugar:
$container->get(Reference::to('someService')); // vs $container->get(new Reference('someService'));
If we decide to support this syntax then in my opinion we should make the __construct() constructor private.
__construct()
The text was updated successfully, but these errors were encountered:
Implemented by #57
Sorry, something went wrong.
No branches or pull requests
Currently
Reference
has 2 constructors, 1 static one and 1 non-static one.I imagine the static one was added mostly for syntactic sugar:
If we decide to support this syntax then in my opinion we should make the
__construct()
constructor private.The text was updated successfully, but these errors were encountered: