DIPluginServiceFactoryΒΆ

As much as DIServiceFactory this allows defining a class to be instanciated by dependency injection. The difference to the DIServiceFactory is that this may be used for zf2 PluginManagers.

Example:

// PluginManager config:
return [
    'factories' => [
        'myhelper' => new \rampage\core\services\DIPluginServiceFactory(MyHelper::class);
    ]
];