Skip to content
Snippets Groups Projects
Commit 00aafc86 authored by totten's avatar totten
Browse files

docs/hooks/setup/symfony.md - Add note about callback notation

parent da5858fe
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,11 @@ function _example_say_hello($event) {
}
```
> __Note__: The "definition" will be written to a cache file. Consequently,
> the callback function must be a string (function-name) or an array
> (class-name, function-name). Using an anonymous `function(){}` block
> could cause problems with the cache file.
<!--
TODO: an example using a container-service and tag. See "Registering Event Listeners
in the Service Container" from http://symfony.com/doc/2.7/components/event_dispatcher.html
......
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