public static function restrict($type, array $config)
{
$classNs = '\\Psecio\\Gatekeeper\\Restrict\\' . ucwords(strtolower($type));
if (!class_exists($classNs)) {
throw new \InvalidArgumentException('Restriction type "' . $type . '" is invalid');
}
$instance = new $classNs($config);
self::$restrictions[] = $instance;
}