public function create($upload, $server)
    {
        $fileupload = new FileUpload($upload, $server);
        $fileupload->setPathResolver($this->pathresolver);
        $fileupload->setFileSystem($this->filesystem);
        if (null !== $this->fileNameGenerator) {
            $fileupload->setFileNameGenerator($this->fileNameGenerator);
        }

        foreach ($this->validators as $validator) {
            $fileupload->addValidator($validator);
        }

        return $fileupload;
    }
public function create($upload, $server)
    {
        $fileupload = new FileUpload($upload, $server);
        $fileupload->setPathResolver($this->pathresolver);
        $fileupload->setFileSystem($this->filesystem);
        if (null !== $this->fileNameGenerator) {
            $fileupload->setFileNameGenerator($this->fileNameGenerator);
        }

        foreach ($this->validators as $validator) {
            $fileupload->addValidator($validator);
        }

        return $fileupload;
    }
public function create ( $ upload , $ server ) { $ fileupload = new FileUpload ( $ upload , $ server ) ; $ fileupload -> setPathResolver ( $ this -> pathresolver ) ; $ fileupload -> setFileSystem ( $ this -> filesystem ) ; if ( null !== $ this -> fileNameGenerator ) { $ fileupload -> setFileNameGenerator ( $ this -> fileNameGenerator ) ; } foreach ( $ this -> validators as $ validator ) { $ fileupload -> addValidator ( $ validator ) ; } return $ fileupload ; }
Create new instance of FileUpload with the preset modules
@param  array $upload
@param  array $server
@return FileUpload
Create new instance of FileUpload with the preset modules