/** * Injects everything into the passed object/instance * * @param mixed $object instance * @param string $containerName the container that holds the maps/dependencies */ public static function inject($object, $containerName = 'main') { $injector = new self(); $injector->setObject($object); $injector->setContainer(Pd_Container::get($containerName)); $injector->injectObject(); }