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
Works:
namespace TestFixtures\DependencyManagerTest; use DI\Annotations\Inject; class Class1 { /** * @Inject * @var TestFixtures\DependencyManagerTest\Class2 */ private $class2; }
Doesn't work (Class2 is in the same namespace):
namespace TestFixtures\DependencyManagerTest; use DI\Annotations\Inject; class Class1 { /** * @Inject * @var Class2 */ private $class2; }
Doesn't work (Class2 is in another namespace):
namespace TestFixtures\DependencyManagerTest; use DI\Annotations\Inject; use AnotherNamespace\Class2; class Class1 { /** * @Inject * @var Class2 */ private $class2; }
The text was updated successfully, but these errors were encountered:
#1 Use statements are taken into account for class resolution
5fde3ac
Merge pull request #1 from PHP-DI/wildcard-autowire
0017265
Improve #616
Merge pull request #1 from PHP-DI/improve-645
ee0a72d
Simplify #645
mnapoli
No branches or pull requests
Works:
Doesn't work (Class2 is in the same namespace):
Doesn't work (Class2 is in another namespace):
The text was updated successfully, but these errors were encountered: