1. composer.jsonの最下方、symfony-web-dir:
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "foo/bar",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": null
}
2. web/app.php(foo/bar/app.php)の5〜7行目付近でautoload.phpとbootstrap.php.cacheへのパスに「../../」追加:use Symfony\Component\HttpFoundation\Request;
require __DIR__.'/../../vendor/autoload.php';
if (PHP_VERSION_ID < 70000) {
include_once __DIR__.'/../../var/bootstrap.php.cache';
}
$kernel = new AppKernel('prod', false);
//...
3. web/app_dev.php(foo/bar/app_dev.php)の21行目付近でautoload.phpへのパスに「../../」追加:use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;
//...
require __DIR__.'/../../vendor/autoload.php';
Debug::enable();
$kernel = new AppKernel('dev', true);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
}
//...
0 件のコメント:
コメントを投稿