1 | <?php |
||
30 | class VoterCacheWarmer implements CacheWarmerInterface |
||
31 | { |
||
32 | /** |
||
33 | * The voter. |
||
34 | * |
||
35 | * @var PermissionVoter |
||
36 | */ |
||
37 | protected $voter; |
||
38 | |||
39 | /** |
||
40 | * Constructor. |
||
41 | * |
||
42 | * @param PermissionVoter $voter A voter instance. |
||
43 | */ |
||
44 | public function __construct(PermissionVoter $voter) |
||
48 | |||
49 | /** |
||
50 | * Warms up the cache. |
||
51 | * |
||
52 | * @param string $cacheDir The cache directory. |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function warmUp($cacheDir) |
||
62 | |||
63 | /** |
||
64 | * Checks whether this warmer is optional or not. |
||
65 | * |
||
66 | * @return bool always true |
||
67 | */ |
||
68 | public function isOptional() |
||
72 | } |
||
73 |