Skip to content
New issue

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

PHP-DI definition is not indexed by an entry name in the definition array #701

Closed
sam1238801 opened this issue Dec 27, 2019 · 3 comments
Closed

Comments

@sam1238801
Copy link

Fatal error: Uncaught Exception: The PHP-DI definition is not indexed by an entry name in the definition array in
C:\new_xampp\htdocs\project\vendor\php-di\php-di\src\Definition\Source\DefinitionArray.php:45
Stack trace:
#0 C:\new_xampp\htdocs\project\vendor\php-di\php-di\src\ContainerBuilder.php(148):
DI\Definition\Source\DefinitionArray->__construct(Array, Object(DI\Definition\Source\ReflectionBasedAutowiring))
#1 [internal function]: DI\ContainerBuilder->DI{closure}(Array)
#2 C:\new_xampp\htdocs\project\vendor\php-di\php-di\src\ContainerBuilder.php(143): array_map(Object(Closure), Array)
#3 C:\new_xampp\htdocs\project\public\index.php(33): DI\ContainerBuilder->build()
#4 {main}
thrown in C:\new_xampp\htdocs\project\vendor\php-di\php-di\src\Definition\Source\DefinitionArray.php on line45

@sam1238801
Copy link
Author

I am getting the above fatal error which in postman while posting the email and password for JWT Authentication in Slim3

@mnapoli
Copy link
Member

mnapoli commented Dec 27, 2019

I don't think this is a bug in PHP-DI. Rather it is telling you you probably have a mistake in your configuration file (a definition is not indexed by a class name or a string).

@mnapoli
Copy link
Member

mnapoli commented Dec 27, 2019

@mnapoli mnapoli closed this as completed Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants