27 $this->checkName($alias);
29 $this->filters[$alias] = $filter;
32 public function get($alias)
34 if (!isset($this->filters[$alias])) {
35 throw new \InvalidArgumentException(sprintf(
'There is no "%s" filter.', $alias));
38 return $this->filters[$alias];
41 public function has($alias)
43 return isset($this->filters[$alias]);
48 return array_keys($this->filters);
60 if (!ctype_alnum(str_replace(
'_',
'', $name))) {
61 throw new \InvalidArgumentException(sprintf(
'The name "%s" is invalid.', $name));
Manages the available filters.
A filter manipulates an asset at load and dump.
Create styles array
The data for the language used.
Class CssCacheBustingFilter.
checkName($name)
Checks that a name is valid.