addDependency('fileManager'); $this->addDependency('dataManager'); } protected $forceSelectAllAttributes = true; public function afterCreateEntity(Entity $entity, $data) { parent::afterCreateEntity($entity, $data); $this->clearRolesCache(); } public function afterUpdateEntity(Entity $entity, $data) { parent::afterUpdateEntity($entity, $data); $this->clearRolesCache(); } protected function clearRolesCache() { $this->getInjection('fileManager')->removeInDir('data/cache/application/acl'); $this->getInjection('dataManager')->updateCacheTimestamp(); } }