/** * Construct * Will register the Class */ public function __construct() { DownloadHandler::registerHandler($this); }
public function show() { $this->loadFile(); $handler = DownloadHandler::getHandler($this->file->ext, $this->file->mime); $handler->invoke($this->file); }