fileManagerMainService = $fileManagerMainService; } /** * init boxes @ user's account creation * * @param CustomUserInterface $user * @return bool */ public function createBoxesForUser(CustomUserInterface $user){ $error = 0; $db = $this->fileManagerMainService->userDropbox($user); if(!$db instanceof FolderItemBase) $error++; $trash = $this->fileManagerMainService->userTrash($user); if(!$trash instanceof FolderItemBase) $error++; if($error>0) return false; return true; } }