Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

AbstractServiceProvider::reflect_class_or_callable( string $class_name, mixed $concrete )

Check if a combination of class name and concrete is valid for registration.


Description Description

Also return the class injection method if the concrete is either a class name or null (then use the supplied class name).


Parameters Parameters

$class_name

(Required) The class name to check.

$concrete

(Required) The concrete to check.


Top ↑

Return Return

(ReflectionFunctionAbstract|null) A reflection instance for the $class_name injection method or $concrete injection method or callable; null otherwise.


Top ↑

Source Source

File: src/Internal/DependencyManagement/AbstractServiceProvider.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.