Commit 7f8fd046 authored by eileen's avatar eileen 🎱
Browse files

Use use

parent b316cbcd
......@@ -98,8 +98,11 @@ If a use-case builds on the newer `TokenProcessor` (above), then an additional A
`TokenProcessor` emits two events which allow you to define new tokens. Consider this example which defines `{profile.viewUrl}` and `{profile.viewLink}`:
```php
use Symfony\Component\Config\Resource\FileResource;
function example_civicrm_container($container) {
$container->addResource(new \Symfony\Component\Config\Resource\FileResource(__FILE__));
$container->addResource(new FileResource(__FILE__));
$container->findDefinition('dispatcher')->addMethodCall('addListener',
['civi.token.list', 'example_register_tokens']
);
......
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