formapro/Fumocker — Issue #7: [generator] remove dependency to CallbackRegistry
Author: makasim
Created: 2011-10-24 09:42:41+00:00
State: open
Labels: discussion, feature, generator

It is now hard coupled to `CallbackRegistry` because the generated function code contains:

```php
get('{$namespace}', '{$functionName}');

return \\call_user_func_array(\$callable, \\func_get_args());
```

we can replace it with an extra parameter `functionCode` and a method in `CallbackRegistry` which generates a a code for function.