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
non-existent service "sonata.admin.audit.manager" #7590
Comments
@core23 as Nucleos Developer, can you point me out what i might did wrong? |
Also for some unknown reason when i grep for audit.mananger i get this:
i don't know why its getting inlined to twig? Is that just a faulty log line or is something more wrong there? |
I wonder why this is related to the nucleos package, because there is nothing audit specific in it. I never used the audit component for any of my projects, so it must be an sonata problem. |
it seems the problem is caused when i have something that needs the CRUDController, might be a Admin module or something else. (my current tests doesn't have any admin or different controller yet) enabling nucleos user admin bundle by/and setting the i don't know yet what exactly causes this problem, at first i thought that maybe the bundles might have been in wrong order. |
i created a test project to reproduce the problem: https://github.com/Hanmac/sonata_test_case there is no database connected to it, so it shouldn't be a problem |
@core23 because of some reason in the company i needed to do the symfony version 4.4 too. for this i got a different but similar problem: symfony/symfony#43980 like again the problem can be triggered by just enabling i will make a test case for symfony version 4.4 too |
this might be fixed by symfony/symfony#44012 i will need to see until its applied into releases for tested it with 4.* and the patch fixes the problem. |
Environment
Sonata packages
show
Symfony packages
show
Bundles
show
PHP version
Subject
it looks like somewhere the code isn't checking correctly if the service "sonata.admin.audit.manager" should exist or not.
it should work without EntityAuditBundle, right?
The Problem is somewhat related to CRUDController.
I don't have own CRUDController yet.
When i enable NucleosUserAdminBundle, which defines a CRUDController, the error appears.
When its disabled, its a success, because the audit.manager is added to 'removed-ids'
Minimal repository with the bug
Link: https://github.com/Hanmac/sonata_test_case
set the db_driver to orm:
Steps to reproduce
Expected results
Success or different Error
Actual results
The text was updated successfully, but these errors were encountered: