\Pho\FrameworkInjectableTrait

Injectable is a key extensibility comnponent of the Pho Framework.

This is defined in pho-framework, and not pho-lib-graph, because it is not necessarily a core use-case of general purpose graphs.

Summary

Methods
Properties
Constants
inject()
No public properties found
No constants found
injection()
$injectables
N/A
No private methods found
No private properties found
N/A
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Properties

$injectables

$injectables : array

Injected values

As string key, mixed value.

Type

array

Methods

inject()

inject(string  $key, mixed  $value) : void

Injects a value to the subject

Parameters

string $key

The key to call the injectable

mixed $value

The injectable itself.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

injection()

injection(\Pho\Framework\string  $key) 

Parameters

\Pho\Framework\string $key
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275