src/mg/Ding/Container/Impl/ContainerImpl.php
private function _propertyInject($bean, $name, $value)
    {
        $rClass = $this->_reflectionFactory->getClass(get_class($bean));
        if ($rClass->hasProperty($name)) {
             $rProperty = $rClass->getProperty($name);
             if (!$rProperty->isPublic()) {
                $rProperty->setAccessible(true);
             }
            $rProperty->setValue($bean, $value);
            return true;
        }
        return false;
    }
private function _propertyInject($bean, $name, $value)
    {
        $rClass = $this->_reflectionFactory->getClass(get_class($bean));
        if ($rClass->hasProperty($name)) {
             $rProperty = $rClass->getProperty($name);
             if (!$rProperty->isPublic()) {
                $rProperty->setAccessible(true);
             }
            $rProperty->setValue($bean, $value);
            return true;
        }
        return false;
    }
Tries to inject by looking up a property by name.

@param object $bean
@param string $name
@param string $value

@return boolean