On 1/16/11 8:03 PM, Nils Adermann wrote:
On 01/16/2011 08:00 PM, Christophe COEVOET wrote:
Le 16/01/2011 19:48, Nils Adermann a écrit :
I think moving bundles to /vendor/ would make a lot of sense. To avoid
having to register every individual Bundle vendor one could modify the
UniversalClassLoader to look for a default folder in case a class does
not use any of the registered namespaces. This would allow loading all
Bundles directly from /vendor/ if they follow the correct structure.
Nils
This is not a good idea. The class loader should be able to know if it
supports the class or not as you can also use other loaders in your
project.
The class will be resolved to a filename in that default directory. If
the path /vendor/YourVendor/YourBundle/YourClass.php does not exist, it
will return and let your other autoloaders handle the class. So I don't
think it is a problem
I have just updated the autoloader to support this as I think this is
really useful:
https://github.com/fabpot/symfony/commit/24ff22af073ea8f6df74257c11c5916493526e96
Fabien
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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