|
@@ 88-94 (lines=7) @@
|
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
if (isset($config['storage']) && $config['storage'] instanceof StorageInterface) { |
| 89 |
|
$this->storage = $config['storage']; |
| 90 |
|
} elseif (isset($config['storage'])) { |
| 91 |
|
throw new InvalidArgumentException('storage needs to be an instance of StorageInterface'); |
| 92 |
|
} else { |
| 93 |
|
$this->storage = new Cookie(); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
if (isset($config['filter']) && $config['filter'] instanceof FilterInterface) { |
| 97 |
|
$this->filter = $config['filter']; |
|
@@ 96-102 (lines=7) @@
|
| 93 |
|
$this->storage = new Cookie(); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
if (isset($config['filter']) && $config['filter'] instanceof FilterInterface) { |
| 97 |
|
$this->filter = $config['filter']; |
| 98 |
|
} elseif (isset($config['filter'])) { |
| 99 |
|
throw new InvalidArgumentException('filter config needs to be an instance of FilterInterface'); |
| 100 |
|
} else { |
| 101 |
|
$this->filter = new DefaultFilters($this->name, $this->storage, $config); |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |