protected function parseDirectives() { if (!$this->params) { return; } foreach ($this->params as $key => $value) { if ($this->hasDirectiveHandler($key)) { $this->directives[$key] = $value; unset($this->params[$key]); } } }