public function allowPluginType(string $mime = 'text/plain') : self { $this->policies['plugin-types']['types'][] = $mime; $this->needsCompile = true; return $this; }