Maybe I am doing something wrong but... I am trying to integrate XAutoload with the D7's form API.
I have this function:
"\Drupal\prevencionintegral\Forms\FormInscripcionCongreso::Validate"
I'm using that as the forms validation callback.
Now, when the Form API tries to call it back this fails:
$function($form, $form_state);
But this works:
call_user_func_array($function, array($form, &$form_state));
Does that mean that autoloading will not work when a function is called as in the first failing example?
($function is a string variable holding the full qualified function name as posted at the begining)
Thanks!
BTW @donquixote awesome work with this module, congratulations, this is smoothing a lot D7-D8 transition and making D7 way more maintainable.
Comments
Comment #1
david_garcia CreditAttribution: david_garcia commentedComment #2
donquixote CreditAttribution: donquixote commentedHi,
this is an issue with how PHP functions are called, not with this module or with autoloading.
http://3v4l.org/cITir