public function __construct($mimeSpec) { $this->readSpec = $mimeSpec['read']; $this->writeSpec = $mimeSpec['write']; \OCA\Richdocuments\Filter::add($mimeSpec['write']['target'], $this); }