You are here

public static function InvalidArgumentException::invalidClassNotFoundCallback in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php \Doctrine\Common\Proxy\Exception\InvalidArgumentException::invalidClassNotFoundCallback()

Parameters

mixed $callback:

Return value

self

1 call to InvalidArgumentException::invalidClassNotFoundCallback()
Autoloader::register in vendor/doctrine/common/lib/Doctrine/Common/Proxy/Autoloader.php
Registers and returns autoloader callback for the given proxy dir and namespace.

File

vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php, line 86

Class

InvalidArgumentException
Proxy Invalid Argument Exception.

Namespace

Doctrine\Common\Proxy\Exception

Code

public static function invalidClassNotFoundCallback($callback) {
  $type = is_object($callback) ? get_class($callback) : gettype($callback);
  return new self(sprintf('Invalid \\$notFoundCallback given: must be a callable, "%s" given', $type));
}