Elgg  Version 3.0
Public Member Functions | List of all members
Elgg\Di\PhpDiResolver Class Reference

Cacheable PHP-DI definition that pulls from Elgg's DIC. More...

Inheritance diagram for Elgg\Di\PhpDiResolver:

Public Member Functions

 __construct ($name, $elgg_dic_key)
 Constructor. More...
 getName ()
 {} More...
 getScope ()
 {} More...
 resolve (ContainerInterface $container)
 {} More...
 isResolvable (ContainerInterface $container)
 {} More...

Detailed Description

Cacheable PHP-DI definition that pulls from Elgg's DIC.

We could just use Closures that call _elgg_services(), but with current PHPDI, they can't be serialized for the cache. Even when PHPDI uses BetterReflection, unserializing cached Closures may not be any faster than this.

Definition at line 17 of file PhpDiResolver.php.

Constructor & Destructor Documentation

Elgg\Di\PhpDiResolver::__construct (   $name,


string$nameEntry name. E.g. "Elgg\Menu\Service"
string$elgg_dic_keyKey on Elgg's DIC. E.g. "menus"

Definition at line 35 of file PhpDiResolver.php.

Member Function Documentation

Elgg\Di\PhpDiResolver::getName ( )


Definition at line 43 of file PhpDiResolver.php.

Elgg\Di\PhpDiResolver::getScope ( )


Definition at line 50 of file PhpDiResolver.php.

Elgg\Di\PhpDiResolver::isResolvable ( ContainerInterface  $container)


Definition at line 65 of file PhpDiResolver.php.

Elgg\Di\PhpDiResolver::resolve ( ContainerInterface  $container)


Definition at line 58 of file PhpDiResolver.php.

The documentation for this class was generated from the following file: