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
Symfony 6.4 introduced an attribute called #[AutowireLocator] which automatically creates and injects a ServiceLocator into a service. Looks like a similar feature was already implemented with #151.
Is it possible to add support for this feature, too?
------ ----------------------------------------------------------------------
Line src/TranscriptBundle/Admin/TranscriptAdmin.php
------ ----------------------------------------------------------------------
56 Service "App\ProfileBundle\Repository\ProfileRepository" is private.
✏️ src/TranscriptBundle/Admin/TranscriptAdmin.php
------ ----------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
The current workaround is to use // @phpstan-ignore symfonyContainer.privateService above the line where we use $this->locator->get. Of course this is not a nice solution.
I actually took the time and implemented AutowireLocator attribute support in #420
Currently there are some failing checks I can't resolve, but besides from that everything should be ready!
Symfony 6.4 introduced an attribute called
#[AutowireLocator]
which automatically creates and injects aServiceLocator
into a service. Looks like a similar feature was already implemented with #151.Is it possible to add support for this feature, too?
The text was updated successfully, but these errors were encountered: