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