BookStack\Services\UploadService::__construct PHP Method

__construct() public method

FileService constructor.
public __construct ( Illuminate\Contracts\Filesystem\Factory $fileSystem )
$fileSystem Illuminate\Contracts\Filesystem\Factory
    public function __construct(FileSystem $fileSystem)
    {
        $this->fileSystem = $fileSystem;
    }

Usage Example

Beispiel #1
0
 /**
  * ImageService constructor.
  * @param $imageTool
  * @param $fileSystem
  * @param $cache
  */
 public function __construct(ImageManager $imageTool, FileSystem $fileSystem, Cache $cache)
 {
     $this->imageTool = $imageTool;
     $this->cache = $cache;
     parent::__construct($fileSystem);
 }