public function export(Defender $defender)
    {
        $content = json_encode($defender->dangerFiles);
        $name = 'defender/defender-'.$this->date.'.json';

        if ($this->storage->exists($name)) {
            $this->storage->delete($name);
        }

        $this->storage->put($name, $content);
    }
public function export(Defender $defender)
    {
        $content = json_encode($defender->dangerFiles);
        $name = 'defender/defender-'.$this->date.'.json';

        if ($this->storage->exists($name)) {
            $this->storage->delete($name);
        }

        $this->storage->put($name, $content);
    }
public function export ( Defender $ defender ) { $ content = json_encode ( $ defender -> dangerFiles ) ; $ name = 'defender/defender-' . $ this -> date . '.json' ; if ( $ this -> storage -> exists ( $ name ) ) { $ this -> storage -> delete ( $ name ) ; } $ this -> storage -> put ( $ name , $ content ) ; }
Create log file.

@param Defender $defender
Create log file .