Symfony ProjectConfiguration.class.php lib path

In need to tweak config/ProjectConfiguration.class.php file in order to import a project to a sandbox symfony workspace.

The path to sfCoreAutoload was never good between web and cli symfony.

Here is the trick :

if (!@include_once ‘./lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php’) {
include_once ‘../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php’;
}
sfCoreAutoload::register();

Leave a Reply

Your email address will not be published. Required fields are marked *