As a follow-up a discussion https://www.drupal.org/project/at_theme/issues/3192788, I suggest that we move lazy builder class from at_theme to the at_tool and make it service. In that case we can use dependency injection.
Remaining tasks
make patch for at_tool moduletest and commit the patch for at_tool modulemake patch for at_theme, inculding changes of composer.json (dependency of latest at_tool version)commit patch for at_theme
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | move-lazy-builders-to-at_tool-3194455-2.patch | 2.43 KB | eugene bocharov |
Comments
Comment #2
eugene bocharov commentedComment #4
mattbloomfield commentedThis has been committed. Thanks for your work.
Comment #5
eugene bocharov commentedThank you @mattbloomfield for working at this project.
Comment #7
rossidrup commentedhas this error has anything to do with it?
2021/05/27 07:43:39 [error] 2013#2013: *359 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception InvalidArgumentException: "Class "at_tool.lazy_builders" does not exist." at /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php line 24" while reading response header from upstream, client: 172.18.0.6, server: , request: "GET /sevanje HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "drupal8test.ddev.site", referrer: "https://drupal8test.ddev.site/"
Comment #8
rossidrup commented