Actually, this is actually not a symfony issue outside of lib/vendor . He recommended using it in this way, because in this way it will be automatically loaded. Using vendor-dir in Composer, you can configure where to place your vendor's library. But this is a configuration set with root privileges only, so it cannot be configured for every needs library (at least I think so).
But you can put symfony in your plugins/ directory and then tell your application that you want to autoload everything here using apps/frontend/config/autoload.yml :
autoload: symfony: path: %SF_PLUGIN_DIR%/symfony/lib recursive: on
Remember to change the path in config/ProjectConfiguration.class.php :
<?php require_once dirname(__FILE__).'/../plugins/symfony/lib/autoload/sfCoreAutoload.class.php';
That should do the trick.
j0k
source share