Technical Docs

Search Documentation

Function: di52_instanceClosure

Builds and returns a closure to be used to lazily make objects on PHP 5.3+ and return them.

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

Parameters summary

(tad_DI52_Container) $container
(string) $classOrInterface
(array) $vars

Return value summary

(Closure)

Examples

Closure di52_instanceClosure ( tad_DI52_Container $container, string $classOrInterface, array $vars = array() )