function ExtensionHookManager::hook
@phan-suppress PhanUndeclaredFunction
Overrides HookManagerInterface::hook
File
-
vendor/
open-telemetry/ api/ Instrumentation/ AutoInstrumentation/ ExtensionHookManager.php, line 21
Class
- ExtensionHookManager
- @phan-file-suppress PhanUndeclaredClassAttribute
Namespace
OpenTelemetry\API\Instrumentation\AutoInstrumentationCode
public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null) : void {
assert(extension_loaded('opentelemetry'));
/** @noinspection PhpFullyQualifiedNameUsageInspection */
\OpenTelemetry\Instrumentation\hook($class, $function, $this->bindHookScope($preHook), $this->bindHookScope($postHook));
}