symfony/symfony — pull request #4420 by schmittjoh (2012-05-26 03:49:52+00:00)
Title: [Config] added EnumNode

This adds a EnumNode which should be used instead of a Closure and manual validation.

The benefit is that you can retrieve the allowed values. It is also a bit shorter, but that is not the main point here.