Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
modules
/
backup
/
vendor
/
backup-manager
/
backup-manager
/
src
/
Tasks
/
Storage
:
DeleteFile.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace BackupManager\Tasks\Storage; use League\Flysystem\Filesystem; use BackupManager\Tasks\Task; /** * Class DeleteFile * @package BackupManager\Tasks\Storage */ class DeleteFile implements Task { /** @var Filesystem */ private $filesystem; /** @var string*/ private $filePath; /** * @param Filesystem $filesystem * @param $filePath */ public function __construct(Filesystem $filesystem, $filePath) { $this->filesystem = $filesystem; $this->filePath = $filePath; } /** * @return bool */ public function execute() { return $this->filesystem->delete($this->filePath); } }