1 | <?php |
||
15 | class Entity |
||
16 | { |
||
17 | /** |
||
18 | * @var Filesystem |
||
19 | */ |
||
20 | protected $fs; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $root = ''; |
||
26 | |||
27 | /** |
||
28 | * @param Filesystem $fs |
||
29 | * @param string $root |
||
30 | */ |
||
31 | 8 | public function __construct(Filesystem $fs, $root) |
|
36 | |||
37 | /** |
||
38 | * @param LifecycleEventArgs $args |
||
39 | */ |
||
40 | 5 | public function postRemove(LifecycleEventArgs $args) |
|
50 | |||
51 | /** |
||
52 | * @param LifecycleEventArgs $args |
||
53 | */ |
||
54 | 3 | public function postUpdate(LifecycleEventArgs $args) |
|
61 | |||
62 | /** |
||
63 | * @param EntityInterface $entity |
||
64 | */ |
||
65 | 6 | protected function removeOldFiles(EntityInterface $entity) |
|
72 | } |
||
73 |