Fix the following error:
- BadMethodCallException: The "\Drupal\cloud\Controller\CloudConfigLocationController::access" method is not callable as a _custom_access callback in route "/clouds/cloud_config_location" in Drupal\Core\Access\CustomAccessCheck->access() (line 69 of /var/www/html/web/cloud-test-warnings/web/core/lib/Drupal/Core/Access/CustomAccessCheck.php)
- Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "geocoder". in Drupal\Component\DependencyInjection\Container->get() (line 153 of /var/www/html/web/cloud-testing/web/core/lib/Drupal/Component/DependencyInjection/Container.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3099267-5.patch | 2.88 KB | yas |
Comments
Comment #2
jigish.addweb commentedComment #3
baldwinlouie commented@jigish.addweb, Thank you for this patch. It looks good. I have one comment below.
Can you please add a comment stating why we can't use dependency injection? I'm afraid in the future, someone might try to refactor this and we will end up with the same bug again.
Comment #4
jigish.addweb commentedComment #5
yas@jigishaddweb
@baldwin
I slightly changed the wording for the comment based on Jigish's patch. Please review it.
Comment #6
baldwinlouie commented@all The patch looks good.
Comment #7
yas@baldwinlouie
Thank you for your review. I'll merge the patch to
8.x-2.xand close this issue asFixed.Comment #9
yas