Skip to content

Commit eb0908f

Browse files
committed
[Fix] BP must not be included in constructor. Error when code is generated in jenkins and deployed to a server, the path is the one from jenkins
1 parent 7a7448f commit eb0908f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/logger/Logger/Handler/HandlerAbstract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ class HandlerAbstract extends Base
2121
* @param DriverInterface $filesystem
2222
* @param null|string $filePath
2323
*/
24-
public function __construct(DriverInterface $filesystem, $filePath = BP . '/var/log/${loggerName}/') //@codingStandardsIgnoreLine
24+
public function __construct(DriverInterface $filesystem, $filePath = 'var/log/${loggerName}/') //@codingStandardsIgnoreLine
2525
{
26+
$filePath = BP . DIRECTORY_SEPARATOR . $filePath;
2627
parent::__construct($filesystem, $filePath);
2728
}
2829
}

0 commit comments

Comments
 (0)