- Issue created by @longwave
- Status changed to Needs review
12 months ago 1:57pm 18 April 2024 - π¬π§United Kingdom longwave UK
We could assume that all paths are relative and always prepend
DRUPAL_ROOT
here, but I guess there might be code that is doing something different here and passing in already-absolute paths, so better to check each case. - π¬π§United Kingdom alexpott πͺπΊπ
What about attribute discovery?
- π¬π§United Kingdom longwave UK
Fixed some tests that use vfs:// paths by additionally allowing URIs, and fixed AttributeClassDiscovery as well by making the new method a trait. Also swapped to using \Drupal::root() as that seems more correct, injection will be painful as it means changing every single plugin manager to inject the root directory as well, unless we change
container.namespaces
to automatically prepend the root there instead? I assume that those paths are relative for a reason, and we can't just hardcode absolute paths into the container. - π¬π§United Kingdom alexpott πͺπΊπ
and we can't just hardcode absolute paths into the container.
Well \Drupal\Core\Site\Settings::getApcuPrefix() says we can... the container cache key depends on drupal root.
- πΊπΈUnited States smustgrave
Wondering what next steps are for this one?
- Status changed to Needs work
11 months ago 2:42pm 3 May 2024 - First commit to issue fork.
- Status changed to Needs review
10 months ago 5:51am 31 May 2024 - Status changed to Needs work
10 months ago 5:14pm 31 May 2024 - π¬π§United Kingdom longwave UK
This broke all the tests, so there is something wrong.