You are here

public static function AuthcacheP13nObjectFactory::ensureIsSet in Authenticated User Page Caching (Authcache) 7.2

A resource processor throwing an exception when the value is NULL.

Return value

var The input value.

Throws

AuthcacheP13nObjectFactoryException

File

modules/authcache_p13n/includes/AuthcacheP13nObjectFactory.inc, line 319
Defines the class AuthcacheP13nObjectFactory.

Class

AuthcacheP13nObjectFactory
A utility class helping with dependency injection.

Code

public static function ensureIsSet($value, $ignored_arg, $name) {
  if (!isset($value)) {
    throw new AuthcacheP13nObjectFactoryException("Resource {$name} cannot be NULL");
  }
  return $value;
}