tmpFileCopier = $tmpFileCopier; } /** * Copies file from the remote server to the tmp directory * * @param Subject $subject * @param string $value * @param string|null $originalName * @return array * @throws FileSystemException * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function beforeIsValid(Subject $subject, $value, string $originalName = null) { return [$this->tmpFileCopier->copy($value), $originalName]; } }