Skip to content
Snippets Groups Projects
Commit 325ce462 authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #218 from GinkgoFJG/patch-7

Corrected hook definition.
parents e7d64822 5fd0a58e
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ This hook is available in CiviCRM 4.7+.
## Definition
container(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
hook_civicrm_container(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
## Parameters
......@@ -36,4 +36,4 @@ This hook is available in CiviCRM 4.7+.
function mymodule_civicrm_container($container) {
$container->addResource(new FileResource(__FILE__));
$container->setDefinition('mysvc', new Definition('My\Class', array()));
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment