public function __construct($fileName) { parent::__construct(); if (isset($_FILES[$fileName])) { $uploadConfig = $this->container["uploadConfig"]; $this->source = new \Upload\Storage\FileSystem($uploadConfig["path"]); $this->filename = $fileName; $this->logger->info(get_class()); } else { $this->setResult(["success" => false, "error" => 2, "message" => "File to parse not specified"]); } }
public function __construct($xml = '') { parent::__construct(); $this->logger->info("Creating SimpleXmlElement for xml : \n"); $this->cv = new \SimpleXmlElement($xml); }