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 @@
+<?php
+
+namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;
+
+/**
+ * Base configuration annotation.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+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