An error occurred while fetching the assigned milestone of the selected merge_request.
Draft: Issue 3249970: Support setting service parameters via environment variables
2 unresolved threads
Merge request reports
Activity
added 797 commits
-
be948e39...42b3b113 - 796 commits from branch
project:11.x
- 20b78c59 - Merge branch drupal:11.x into issue-3249970-11x
-
be948e39...42b3b113 - 796 commits from branch
added 1 commit
- edadb08f - chore: add DependencyInjection group for our new testcase
added 1 commit
- 37a149af - fix: resolve container.module parameter for testing
added 15 commits
-
37a149af...abcb2029 - 14 commits from branch
project:11.x
- c1c1317d - Merge branch drupal:11.x into issue-3249970-11x
-
37a149af...abcb2029 - 14 commits from branch
167 167 // The exception to the above elegance: re-resolve the '%app_root%' param. 168 168 // @see \Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass 169 169 // @see \Drupal\Core\DrupalKernel::guessApplicationRoot() 170 $container->getDefinition('module_handler')->setArgument(0, '%app.root%'); 170 $container->getDefinition('module_handler') 171 ->setArgument(0, '%app.root%') 172 ->setArgument(1, '%container.modules%'); - Comment on lines +170 to +172
Looks like the definition for the
container.namespaces
service needs to be re-re-resolved as well. This is feeling increasingly hacky, and the comment probably needs to expanded on, but can try this first to see if all the test pass.172 $container->getDefinition('module_handler') 173 ->setArgument(0, '%app.root%') 174 ->setArgument(1, '%container.modules%'); 172 $container->getDefinition('module_handler') 173 ->setArgument(0, '%app.root%') 174 ->setArgument(1, '%container.modules%'); 175 $container->getDefinition('container.namespaces') 176 ->setArgument(0, '%container.namespaces%');
added 1 commit
- 3a2c0d4a - fix: reinject container.namespaces into container
167 167 // The exception to the above elegance: re-resolve the '%app_root%' param. 168 168 // @see \Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass 169 169 // @see \Drupal\Core\DrupalKernel::guessApplicationRoot() - Comment on lines 167 to 169
OK, since the tests pass, comment should be updated. Maybe something like this:
169 // The exception to the above elegance: re-resolve the '%app_root%' param. 170 // @see \Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass 171 // @see \Drupal\Core\DrupalKernel::guessApplicationRoot() 169 // The exception to the above elegance: re-resolve the '%app_root%', 170 // '%container.modules%', and '%container.namespaces%' params. 171 // @see \Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass 172 // @see \Symfony\Component\DependencyInjection\Compiler\ResolveEnvPlaceholdersPass 173 // @see \Drupal\Core\DrupalKernel::guessApplicationRoot()
added 1 commit
- 349878b9 - fix: remove duplicate definition for container.namespaces
added 1 commit
- 58e23dc5 - feat: add configuration parameters with %% characters, array, binary, constant and enum
Please register or sign in to reply