app\Certificate::getPath PHP Method

getPath() public method

public getPath ( )
    public function getPath()
    {
        return "/data/" . $this->name;
    }

Usage Example

コード例 #1
0
ファイル: BaseCommand.php プロジェクト: RustyPixel/lemanager
 protected function getLogger(Certificate $certificate)
 {
     $logPath = $certificate->getPath() . '/last.log';
     @unlink($logPath);
     $logger = new Logger('issue-new');
     $handler = new StreamHandler($logPath);
     $handler->setFormatter(new LineFormatter("[%datetime%] %level_name%: %message%\n"));
     $logger->pushHandler($handler);
     return $logger;
 }