| 1 | <?php |
||
| 16 | trait FilterTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var CacheManager |
||
| 20 | */ |
||
| 21 | private $cache; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param CacheManager $cache |
||
| 25 | */ |
||
| 26 | public function __construct(CacheManager $cache) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Gets the browser path for the image and filter to apply. |
||
| 33 | * |
||
| 34 | * @param string $path |
||
| 35 | * @param string $filter |
||
| 36 | * @param array $config |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function filter($path, $filter, array $config = [], $resolver = null) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function getName() |
||
| 52 | } |
||
| 53 |