Technical Docs

Search Documentation

Function: di52_callbackClosure

Builds and returns a closure to be used to lazily make objects on PHP 5.3+, call a method on them and return the method value.

Located at common/vendor/lucatume/di52/src/tad/DI52/closuresSupport.php (Line: 12)

Parameters summary

(tad_DI52_Container) $container
(string) $classOrInterface
(string) $method

Return value summary

(Closure)

Examples

Closure di52_callbackClosure ( tad_DI52_Container $container, string $classOrInterface, string $method )