adjusted class to match new symfony.com one