public function __construct($name, array $config)
{
if (!preg_match(self::NAME_REGEX, $name)) {
throw new \InvalidArgumentException(sprintf('Configuration names may only contain alpha-numeric characters, _ and -. Got "%s"', $name));
}
$this->name = $name;
parent::__construct($config);
}