Commit c76c9b74 authored by eileen's avatar eileen 🎱
Browse files

Add doc block

parent 7f8fd046
......@@ -36,8 +36,14 @@ This hook is available in CiviCRM 4.7+.
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\Definition;
function mymodule_civicrm_container($container) {
use Symfony\Component\DependencyInjection\ContainerBuilder;
* Add my services to the container.
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
function mymodule_civicrm_container(ContainerBuilder $container) {
$container->addResource(new FileResource(__FILE__));
$container->setDefinition('mysvc', new Definition('My\Class', array()))->setPublic(TRUE);
Supports Markdown
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