これがsymfonyの本からの私のコードです。
public function getCacheDir() {
return $this->rootDir . '/access-logs/' . $this->environment . '/cache/';
}
public function getLogDir() {
return $this->rootDir . '/access-logs/' . $this->environment . '/logs/';
}
現在、ディレクトリはPROJECTNAME/app/access-logs /dev/cacheにあります
しかし、私はPROJECTNAME/access-logs /dev/cacheで必要です
注:「アプリディレクトリの外側とプロジェクトディレクトリの内側が必要です」