- 🇺🇸United States BenStallings
OK, but not all of the methods in that class are static! And the parent class already implements ContainerFactoryPluginInterface, so all we need to do is use the
$instance = parent::create()
pattern.- defineOptions(), optionsSummary(), and buildOptionsForm() need the module_handler service injected
- buildOptionsForm() also needs the stream_wrapper_manager and plugin.manager.facets.facet_source services injected
- Merge request !82inject dependencies where possible in DataExport → (Merged) created by BenStallings
- 🇬🇧United Kingdom steven jones
@benstallings thanks for the effort here, but there are still some places where we're not using dependency injection in this class at least, specifically the usages of the token service originally raised in this issue.
- 🇬🇧United Kingdom steven jones
Ah, but of course that's exactly where we can't use DI, because the methods are static.
-
steven jones →
committed ce1b6bed on 8.x-1.x authored by
benstallings →
Issue #3107955 by steven jones, benstallings, vernit, tolyan4ik: Use...
-
steven jones →
committed ce1b6bed on 8.x-1.x authored by
benstallings →
Automatically closed - issue fixed for 2 weeks with no activity.