It's done this way for a reason: because those constant do not exist on all Symfony PHP supported versions. So, using constants would break on those versions of PHP.