protected function resolve($name)
{
$config = $this->getConfig($name);
if (is_null($config)) {
throw new InvalidArgumentException("Verification broker [{$name}] is not defined.");
}
if (isset($this->customCreators[$name])) {
return $this->callCustomCreator($name, $config);
} else {
return $this->{'create' . ucfirst($name) . 'Broker'}($config);
}
}