diff -r 000000000000 -r 7f95f8617b0b vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Configuration/ConfigurationAnnotation.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Configuration/ConfigurationAnnotation.php Sat Sep 24 15:40:41 2011 +0200 @@ -0,0 +1,22 @@ + + */ +abstract class ConfigurationAnnotation implements ConfigurationInterface +{ + public function __construct(array $values) + { + foreach ($values as $k => $v) { + if (!method_exists($this, $name = 'set'.$k)) { + throw new \RuntimeException(sprintf('Unknown key "%s" for annotation "@%s".', $k, get_class($this))); + } + + $this->$name($v); + } + } +} \ No newline at end of file