Heat the olive oil over medium heat in a large saucepan. Add the onion and fry until soft and transparent then add the garlic and red chili flakes and fry until soft.
Add the white beans and water and bring it to a simmer. Add the cream cheese and stir to melt then add the chopped spinach and cook until the spinach is wilted.
Season with salt and pepper.
