-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a service adapter for drush.services.yml (#5553)
* Add a basic Drush service adapter. Feed it from the existing drush.services.yml discovery in the Drush Drupal Kernel trait. * Use our own service discovery class instead of Symfony DI container compiler pass to find commands and etc. * Code style * Fix module command discovery * Fix typo in Console command handling * Rename DrushServiceFinder to LegacyServiceFinder and add ServiceManager. Use ServiceManager to pass generators to the generate command. * Code style * Move ModuleGeneratorTest to the functional tests, because integration tests only bootstrap once * Skip failing archive:restore test. * Simplify LegacyServiceInstantiator; remove unnecessary containers. * Code style * Remove unused class DrushServiceModifier, and also remove some unused, already commented-out code. * Remove container test, because Drush is no longer involved with container rebuilds. * Move PSR-4 command discovery out of Generate command and into the ServiceManager class so that a referece to the autoloader is not needed (directly) by the Generate command. * Remove unused FindCommandsCompilerPass * Move command discovery to the service manager. * Code style * Fix typo in LegacyServiceFinder * Use module handler instead of container.modules in DrupalBoot8. * Move module discovery methods to the service manager * Move discovery code out of DrupalKernelTrait and into LegacyServiceInstantiator. * Code style * Move bootstrap classes from Application to ServiceManager * Declare FilterHooks in ServiceManager * Explicitly instantiate command info alterers * Add some docblock comments * Throw Symfony ParameterNotFoundException when service cannot be initialized due to a missing required parameter. * Typehints and docblock comments for service manager
- Loading branch information
1 parent
047a3eb
commit ce1042a
Showing
17 changed files
with
939 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.