This module is a joint effort to ease service configuration or to ease the way services are created in day to day applications.
The module serves 4 purposes.
- It Includes a list of patches needed to patch core so as to take advantage of the Symfony 3.4 functionality that is used in the ease of defining services in a module. The links to patches can be found in the composer.json file that is included in this module.
- It includes the ability to create service locators (or services subscribing to a number of services). This helps in lazy loading of a number of services compared to the current default way of injecting all services in the service constructor.
- It enables the ability to type hint services in the controller methods using argument resolvers.
- It includes a number of examples showing off how all these new Symfony 3.4 features can be used in Drupal modules. The examples can be found in the examples folder.
Note:
To fully test this module i.e including the examples, the user must do the following:
- Patch core using the provided patches.
- Install the "symfony/config:^3.4" package.
Not doing the above, PHP fatal errors will be thrown.
Project link
https://www.drupal.org/project/extended_container
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/extended_container.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-extended_conta...
Comments
Comment #2
bonrita commentedComment #3
avpadernoWe just accept applications from users who don't have the vetted role. Any application created after the role is given is closed as Closed (duplicate) (if a previous application is found) or Closed (won't fix).
The purpose of these applications is not reviewing every project users create, but reviewing a single project created from users who aren't vetted users to make them able to opt into security review coverage for their (past and future) projects.