skip to Main Content

Php – Symfony upgrade (4.4 -> 5.4) JsonManifestVersionStrategy issue

By upgrading Symfony from 4.4 to 5.4 I've taken an error Argument 2 passed to SymfonyComponentAssetVersionStrategyJsonManifestVersionStrategy::__construct() must be an instance of SymfonyContractsHttpClientHttpClientInterface or null, instance of GuzzleHttpClient given, called in /var/www/var/cache/dev/ContainerHhXYcwE/App_KernelDevDebugContainer.php JsonManifestVersionStrategy is not used in the project directly. Would…

VIEW QUESTION

Php – Symfony multiple IsGranted on a same controller not working

I have a controller on which I have 2 routes created: #[Route('/announcement/create', name: 'app_admin_restock_announcement_create'), IsGranted(RestockVoter::CREATE_RESTOCK)] #[Route('/announcement/edit/{id}', name: 'app_admin_restock_announcement_edit'), IsGranted(RestockVoter::EDIT_RESTOCK, 'restockQueue')] public function detail( ?RestockQueue $restockQueue, ... The problem is user who can create can not edit. When I debug on…

VIEW QUESTION
Back To Top
Search