- Issue created by @donquixote
- last update
over 1 year ago 29,816 pass, 1 fail - @donquixote opened merge request.
- π©πͺGermany donquixote
For now only support 'bind' in '_defaults' section.
By looking at the code in symfony, symfony also supports 'bin' in a specific service definition.
The current MR does not support this.
Also, I don't see documentation for it in symfony. - last update
over 1 year ago 29,830 pass - Status changed to Needs review
over 1 year ago 1:25am 21 July 2023 - Status changed to RTBC
over 1 year ago 2:43pm 21 July 2023 - πΊπΈUnited States smustgrave
I thoroughly enjoy reading these kind of tickets.
The test coverage looks like it covers everything.
Should there be follow up tickets (maybe a META) to update existing services to bind at least a logger to each module?
Putting into the committer bucket.
- π©πͺGermany donquixote
Btw, I notice the
phpcs:ignoreFile
, and the 4 spaces indent in the core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php.I also notice that I have a comment without a dot, which would normally trip up the code style check. But here it goes unnoticed.
(That comment line is copied 1:1 from symfony, and it explains why they do unserialize(serialize()) deep clone)
So, we need some human eyes no the code style!---
By looking at the code in symfony, symfony also supports 'bind' in a specific service definition.
The current MR does not support this.The reason was that in symfony, the code to support specific service 'bind' does something with a
$this-isLoadingInstanceof
, which does not exist in the Drupal YamlFileLoader, and which I don't fully understand.
This also shows that the requirement to "document everything" in Drupal is not always bad - if the documentation actually adds something. - π©πͺGermany donquixote
Actually we can ignore
->isLoadingInstanceof
for now.
It only becomes relevant if we support a_instanceof
key in *.services.yml.
At some point we might do this, but not for now. - π©πͺGermany donquixote
There is also the
$trackBindings
parameter, which seems to be always true, but I am not sure about it. - π©πͺGermany donquixote
Should there be follow up tickets (maybe a META) to update existing services to bind at least a logger to each module?
Actually, what we should do, before this is merged:
Create a proof-of-concept branch in this issue, where we convert a bunch of things to use "bind", to detect if there are unpleasant surprises waiting for us. - π¬π§United Kingdom longwave UK
Great work!
+1 to testing this further by converting some core modules to use it. It is hard to pick out all the parts that we need from the Symfony parser code because they have so many features we are missing, some of which interact with each other, and there are very few comments,
- last update
over 1 year ago 29,845 pass - last update
over 1 year ago 29,844 pass, 2 fail - last update
over 1 year ago 29,844 pass, 1 fail - Status changed to Needs work
over 1 year ago 5:55pm 21 July 2023 - last update
over 1 year ago 29,845 pass - last update
over 1 year ago Custom Commands Failed - @donquixote opened merge request.
- last update
over 1 year ago 29,845 pass - Status changed to Needs review
over 1 year ago 9:06pm 21 July 2023 - Status changed to RTBC
over 1 year ago 12:59pm 24 July 2023 - πΊπΈUnited States smustgrave
Come back to this a few times with fresh eyes.
To me (and my novice skill in this area) the changes look good.
Binding the logger and the fact it doesn't break the tests for the submodules seems like its working.Wonder what the committers think?
- last update
over 1 year ago 29,880 pass - last update
over 1 year ago 29,882 pass - last update
over 1 year ago 29,889 pass - last update
over 1 year ago 29,911 pass - last update
over 1 year ago 29,949 pass - last update
over 1 year ago 29,949 pass - last update
over 1 year ago 29,956 pass - last update
over 1 year ago 29,956 pass - last update
over 1 year ago 29,961 pass - last update
over 1 year ago 29,961 pass - last update
over 1 year ago 29,961 pass - last update
over 1 year ago 29,950 pass, 2 fail 45:52 38:27 Running- last update
about 1 year ago 30,052 pass - last update
about 1 year ago 30,059 pass - last update
about 1 year ago 30,059 pass - π³πΏNew Zealand quietone
I triaged this RTBC issue β sometime in the last weeks but didn't leave a comment.
There are no unanswered questions here but I do have one. From #10
+1 to testing this further by converting some core modules to use it. It is hard to pick out all the parts that we need from the Symfony parser code because they have so many features we are missing, some of which interact with each other, and there are very few comments,
Are all core modules converted here? Is there followup work to do?
This can stay at RTBC.
- last update
about 1 year ago 30,063 pass - last update
about 1 year ago 30,063 pass - last update
about 1 year ago 30,101 pass - last update
about 1 year ago 30,137 pass - last update
about 1 year ago 30,138 pass - last update
about 1 year ago 30,139 pass - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - π¬π§United Kingdom catch
I think it's OK if we just convert a couple of examples here without doing everything or even a follow-up to do everything. We will eventually have an issue to autowire all core services, but that might end up depending on other issues like this.
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8
45:53 45:53 Queueing - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Status changed to Needs work
about 1 year ago 5:02pm 10 November 2023 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π¦πΊAustralia acbramley
I'm interested in helping to move this issue along. Given #17, should we just get the PoC MR green? The few examples there cover a decent number of scenarios.