src/mg/Ding/Container/Impl/ContainerImpl.php
private function _nonSetterMethodInject($bean, $name, $value)
    {
        $rClass = $this->_reflectionFactory->getClass(get_class($bean));
        if ($rClass->hasMethod($name)) {
            $bean->$name($value);
            return true;
        }
        return false;
    }
private function _nonSetterMethodInject($bean, $name, $value)
    {
        $rClass = $this->_reflectionFactory->getClass(get_class($bean));
        if ($rClass->hasMethod($name)) {
            $bean->$name($value);
            return true;
        }
        return false;
    }
Tries to inject by looking up a method of the given name.

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

@return boolean