You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of AnnotationDriver doesn't work in Windows when the application runs inside a phar.
The RecursiveDirectoryIterator at line 221 will search in subdirectories of $path, but under Windows entities and repositories get a backslash after the path:
phar://path/to/phar/src/AppBundle\MyEntity.php
Because of the check at line 247 the entity is simply ignored (ReflectionClass always returns forward slashes because source file is inside the phar itself)
phar://path/to/phar/src/AppBundle/MyEntity.php
I think it will be enough a replace when iterating file files (the same is done at line 228):
The current implementation of
AnnotationDriver
doesn't work in Windows when the application runs inside a phar.The
RecursiveDirectoryIterator
at line 221 will search in subdirectories of$path
, but under Windows entities and repositories get a backslash after the path:Because of the check at line 247 the entity is simply ignored (
ReflectionClass
always returns forward slashes because source file is inside the phar itself)I think it will be enough a replace when iterating file files (the same is done at line 228):
The text was updated successfully, but these errors were encountered: