private function removeAnnotation() { if ($this->cacheManager->isCacheSphringAnnotation()) { return; } $annotationsFolder = new Folder(sys_get_temp_dir() . DIRECTORY_SEPARATOR . SphringCacheEnum::CACHE_FOLDER . DIRECTORY_SEPARATOR . SphringCacheEnum::CACHE_FOLDER_ANNOTATIONS); $annotationsFolder->removeFiles('#.*#i', true); $annotationsFolder->removeFolders('#.*#i', true); $annotationsFolder->remove(); }