Hi all, I posted this patch yesterday on the irc channel, but think the mailing list is a better place to get feedback about it ;-).
https://trac.agavi.org/ticket/1341 Basically it allows you to do: <autoload_folders> <autoload_folder pattern="/^.+\/(.+)\.(interface|class)\.php$/i">%core.lib_dir%/services/</autoload_folder> </autoload_folders> Which is fast (done at compile time) and handy (because you can apply your own pattern to identify the class names). Feedback from colleagues was overall pretty positive. But here are some of the negative ones: - we could fake this behavior if we xinclude a autoload_gen.xml --> but after generation (because xinclude changes are not resolved automatically) we would have to clear cache anyways - it is slower in debug mode --> that's a good point. But since all the compiling runs in debug mode, I guess this is wanted ;-). - to much magic @users: What are your ideas/comments on this topic? @agavi-devs: Is this agavi style enhancement? Thoughts? Regards, Jan -- http://dracoblue.net _______________________________________________ Agavi Dev Mailing List [email protected] http://lists.agavi.org/mailman/listinfo/dev
