35 $this->registeredFilters[$filter->name] = $filter;
40 if ($r ===
false)
return;
42 $this->postFilters[$filter->name] = $filter;
44 $this->filters[$filter->name] = $filter;
54 foreach ($this->registeredFilters as
$name => $filter) {
56 if ($conf !==
false && $conf !== null) {
60 unset($this->registeredFilters);
64 $this->host =
$config->get(
'URI.Host');
65 $base_uri =
$config->get(
'URI.Base');
66 if (!is_null($base_uri)) {
68 $this->base = $parser->parse($base_uri);
69 $this->defaultScheme = $this->base->scheme;
70 if (is_null($this->host)) $this->host = $this->base->host;
72 if (is_null($this->defaultScheme)) $this->defaultScheme =
$config->get(
'URI.DefaultScheme');
76 foreach ($this->filters as
$name =>
$f) {
77 $result =
$f->filter($uri,
$config, $context);
78 if (!$result)
return false;
84 foreach ($this->postFilters as
$name =>
$f) {
85 $result =
$f->filter($uri,
$config, $context);
86 if (!$result)
return false;