Kdyby/Monolog

Using dynamic parameter for logDir creates directory named "$this->parameters['logDir']" in CWD

MartinMystikJonas opened this issue · 0 comments

Using container dynamic parameters to set parameter 'logDir' causes creation of directory '$this->parameters['logDir']' in CWD.

Directory is created here because parameter $logDir is object PhpLiteral (reference to dynamic parameter) not string with path:

if (!@mkdir($logDir, 0777, TRUE) && !is_dir($logDir)) {

Is there reason dirctory is created by DIExtension? Would not it be better to move it to runtime?