Skip to content
Snippets Groups Projects
Commit 5fd0a58e authored by ginkgofjg's avatar ginkgofjg Committed by GitHub
Browse files

Corrected hook definition.

parent e7d64822
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