任何人都可以知道如何獲取AppKernel.php中的parameters.yml(或_dev)?獲取AppKernel.php中的parameters.yml參數
我想動態更改getLogDir()變量('mylogsdir')?
AppKernel.php:
$this->rootDir.'/'.$this->environment.'/'.$myLogDir;
parameters.yml:
parameters:
myLogDir: 'logdir'
這可能嗎?
非常感謝 法布里斯