public function __construct(\Arkade\S3\Model\MediaStorage\File\Storage\S3Factory $storageFactory, Filesystem $filesystem) { $this->storageFactory = $storageFactory; $this->mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA); }