Closed b1rdex closed 10 months ago
Also works with Symfony 6.4 after removing deprecations, thx @b1rdex
Which package version are you using? The 5.2.5 composer refuses to install and on dev-master your workaround does not work for me
php v8.2
damienharper/auditor 2.4.8 The missing audit log library. damienharper/auditor-bundle 5.2.5 Integrate auditor library in your Symfony projects.
Your symfony/asset
is at 6.4, that's why you were able to install it. I have it on 7.0
Problem 1
- damienharper/auditor-bundle[5.0.0, ..., 5.x-dev] require symfony/asset ^4.0|^5.0|^6.0 -> found symfony/asset[v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev, v6.0.0-BETA1, ..., 6.4.x-dev] but it conflicts with your root composer.json require (7.0.*).
You may try downgrading some Symfony packages. Or just keep waiting for v6 bundle release with full Symfony v7 compatibility :)
I forked this package, removed the route loader and applied your workaround for now.
I close this issue since this should be fixed in master
branch (PR #399).
Feel free to reopen if needed.
\DH\AuditorBundle\Routing\RoutingAnnotationLoader
is unusable @ Symfony 7Temporal workaround:
services.yaml
(toservices
section):config/routes/dh_auditor.yaml
contents with the following:dh_auditor_show_transaction: path: /admin/audit/transaction/{hash} controller: DH\AuditorBundle\Controller\ViewerController::showTransactionAction
dh_auditor_show_entity_history: path: /admin/audit/{entity}/{id?} controller: DH\AuditorBundle\Controller\ViewerController::showEntityHistoryAction