use options resolver where it makes sense in version 2. see for example https://github.com/FriendsOfSymfony/FOSHttpCache/pull/273/files#r51233172