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
We have upgraded our site, currently on 7.1.x-dev, but ran into a problem in the AbstractEntityArticle AdminListController in the ArticleBundle, where security.token_storage is no longer in the container.
The service was made private in v6 of Symfony https://github.com/symfony/symfony/blob/6.4/UPGRADE-6.0.md?plain=1#L459
I have since tried on a fresh Kuma install using 7.1 of both the cms-skeleton and the bundles.
When I access /nl/admin for the first time, I get the following error:
I tried to make the token storage public, both via yaml and via compiler pass, but neither successfully worked for me. I'm guessing anywhere that references it will need to use dependency injection instead?
The text was updated successfully, but these errors were encountered:
I can't reproduce this problem. When I debug a local demo app and set a breakpoint in the AbstractArticleEntityAdminListController, I can retreive the token storage service and get the user object
Which versions of symfony and the security bundle have you installed? Do you have any service overrides for the AbstractArticleEntityAdminListController? Because the controller uses a service locator it should not matter if the service is private.
As I mentioned, I also get this error on a fresh Kuma install using the 7.1 branches of the skeleton and the bundles, so there isn't anything overriding the config. The version of Symfony installed is 6.3.12, as is the security bundle, and it was running on PHP 8.1.
@acrobat You can close this issue, since this is resolved on our side.
We've created a custom AdminlistConfiguratorBuilder which is used to create dynamic AdminlistConfiguration/Controller services in a CompilerPass. But we needed to add the service subscriber tag to the controller as automagic tagging from the AbstractController class seems to be ignored (or created later than the automagic tagging)
We have upgraded our site, currently on 7.1.x-dev, but ran into a problem in the AbstractEntityArticle AdminListController in the ArticleBundle, where

security.token_storage
is no longer in the container.The service was made private in v6 of Symfony https://github.com/symfony/symfony/blob/6.4/UPGRADE-6.0.md?plain=1#L459
I have since tried on a fresh Kuma install using 7.1 of both the cms-skeleton and the bundles.
When I access

/nl/admin
for the first time, I get the following error:I tried to make the token storage public, both via yaml and via compiler pass, but neither successfully worked for me. I'm guessing anywhere that references it will need to use dependency injection instead?
The text was updated successfully, but these errors were encountered: