- Issue created by @longwave
- First commit to issue fork.
- Status changed to Needs review
10 months ago 7:01pm 8 February 2024 - π¬π§United Kingdom longwave UK
We can't use
!service_closure
syntax in services.yml because the YAML parser does not support it: π Support Yaml::PARSE_CUSTOM_TAGS in \Drupal\Component\Serial::decodeization\YamlSymfony:: Needs workHowever we can enable autowiring instead and use the
#[AutowireServiceClosure]
attribute. - Status changed to Needs work
10 months ago 7:52pm 8 February 2024 - Status changed to Needs review
9 months ago 10:16pm 27 February 2024 - π¬π§United Kingdom longwave UK
session_handler
needs to be explicitly autowired. - Status changed to Needs work
9 months ago 10:58pm 27 February 2024 - π¬π§United Kingdom longwave UK
Not sure I'm taking the right approach here. Maybe we just inject a session closure directly into the session middleware?
- π¬π§United Kingdom longwave UK
longwave β changed the visibility of the branch 3420215-remove-containerawaretrait-from to hidden.
- Status changed to Needs review
9 months ago 10:07pm 28 February 2024 - π¬π§United Kingdom longwave UK
This simpler approach seems to work. Unsure if this needs BC - are middleware services part of the API?
- π¬π§United Kingdom catch
are middleware services part of the API?
I'd put them in the same bracket as event subscribers and tagged services (and hook implementations) - so @internal.
- Status changed to RTBC
9 months ago 7:02am 29 February 2024 - π³π±Netherlands spokje
I'd put them in the same bracket as event subscribers and tagged services (and hook implementations) - so @internal.
We might want to documen that here: https://www.drupal.org/about/core/policies/core-change-policies/bc-policy β
If we do treat it like
@internal
, I would say this is RTBC. - π¬π§United Kingdom catch
Since it's just adding another concrete example to an e.g., made the edit: https://www.drupal.org/about/core/policies/core-change-policies/bc-polic... β
- Status changed to Fixed
9 months ago 12:59pm 29 February 2024 - π¬π§United Kingdom catch
The service closure usage is nice and will help with issues like π Find an alternative to trigger_error in Drupal\Core\EventSubscriber\RedirectResponseSubscriber::checkRedirectUrl Active , and maybe removing our own lazy/proxy services stuff too.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.