public function CallbackHandler::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/CallbackHandler.php \Zend\Stdlib\CallbackHandler::__construct()
Constructor
Parameters
string|array|object|callable $callback PHP callback:
array $metadata Callback metadata:
File
- vendor/
zendframework/ zend-stdlib/ src/ CallbackHandler.php, line 40
Class
- CallbackHandler
- CallbackHandler
Namespace
Zend\StdlibCode
public function __construct($callback, array $metadata = []) {
$this->metadata = $metadata;
$this
->registerCallback($callback);
}