I have a new symfony project. In order to satisfy Debian's FHS I want to put the project's config/
directory under /etc
and create a symbolic link pointing from the normal config/
location to the directory in /etc
.
I have tried this but it does not work. I get errors from ProjectConfiguration.class.php
complaining about not being able to find sfCoreAutoload.class.php
.
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
This makes sense since the original line no longer points at the correct location.
So I changed that line to an absolute path
require_once '/usr/share/myproject/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
But now I get errors like
Uncaught exception 'InvalidArgumentException' with message 'The application "client" does not exist.'
Is there a robust way to relocate the config/
directory of a symfony project? (I realize that there are good reasons not to do this, and I wouldn't if I did not have to, so please keep that in mind.)