On Thu, Jul 23, 2009 at 7:11 PM, Matthias N.<[email protected]> wrote:
> As you are using the autoloader now it is not possible anymore to > override (replace implementation of) core tasks by plugins or in the > project which was possible before and also documented as feature in > the symfony book. Strange, because functional tests include task autoloading from a plugin context (in ./pluginName/lib/task). Can you give me a concrete case I can study? > Using "require_once $file" seems to be the solution. I don't know why > you are using autoloading now? Because we were iterating over files in directories to find class names (sorted in a given order, lately it was alphabetical order), and as you can have a ATask class inheriting from Btask, BTask.class.php was loaded after ATask.class.php, so you had a fatal "class ATask not found" error. The autoloader is there to solve this issue. I'll be more than happy if you have a better solution. Cheers, -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
