Commit 1becddbc authored by jaapjansma's avatar jaapjansma

update

parent f8110268
Version 1.4 (not yet released)
-----------
* Changed the implementation of the civicrm_container hook.
Version 1.3 Version 1.3
----------- -----------
......
...@@ -14,8 +14,7 @@ function action_provider_civicrm_container($container) { ...@@ -14,8 +14,7 @@ function action_provider_civicrm_container($container) {
// Only add our container when it does not exists. // Only add our container when it does not exists.
// This way other extensions might override the container method. // This way other extensions might override the container method.
$actionProviderDefinition = new Definition('Civi\ActionProvider\Container'); $actionProviderDefinition = new Definition('Civi\ActionProvider\Container');
$actionProviderDefinition->setFactoryClass('Civi\ActionProvider\Container'); $actionProviderDefinition->setFactory(['Civi\ActionProvider\Container', 'getinstance']);
$actionProviderDefinition->setFactoryMethod('getInstance');
$container->setDefinition('action_provider', $actionProviderDefinition); $container->setDefinition('action_provider', $actionProviderDefinition);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment