Joomla\DI\Container::buildObject
Build an object of class $key;
Signature
public function buildObject(string
$key,
[boolean
$shared = false] )
Parameters
-
$key
- The class name to build.
-
$shared
- True to create a shared resource.
Returns
- mixed
- Instance of class specified by $key with all dependencies injected.
Returns an object if the class exists and false otherwise