Skip to content
Snippets Groups Projects
Commit 02b96121 authored by totten's avatar totten
Browse files

docs/hooks/setup/symfony.md - Fix bad example code

What's wrong with a little inversion of logic?
parent d5bb9e2d
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ During the system initialization, we lookup the `EventDispatcher`, call
```php
function example_civicrm_config(&$config) {
if (!isset(Civi::$statics[__FUNCTION__])) { return; }
if (isset(Civi::$statics[__FUNCTION__])) { return; }
Civi::$statics[__FUNCTION__] = 1;
Civi::dispatcher()->addListener('hook_civicrm_alterContent', function($event) {
......
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