Open makasim opened 13 years ago
It is now hard coupled to CallbackRegistry because the generated function code contains:
CallbackRegistry
<?php \$callable = \\Fumocker\\CallbackRegistry::getInstance()->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.
functionCode
It is now hard coupled to
CallbackRegistry
because the generated function code contains:we can replace it with an extra parameter
functionCode
and a method inCallbackRegistry
which generates a a code for function.