src/mg/Ding/Container/Impl/ContainerImpl.php
public function getBeansByClass($class)
    {
        $cacheKey = "$class.knownByClass";
        $ret = $this->_beanDefCache->fetch($cacheKey, $result);
        if ($result === true) {
            return $ret;
        }
        $ret = array();
        foreach ($this->_beanDefinitionProviders as $provider) {
            $ret = array_merge($ret, $provider->getBeansByClass($class));
        }
        $this->_beanDefCache->store($cacheKey, $ret);
        return $ret;
    }
public function getBeansByClass($class)
    {
        $cacheKey = "$class.knownByClass";
        $ret = $this->_beanDefCache->fetch($cacheKey, $result);
        if ($result === true) {
            return $ret;
        }
        $ret = array();
        foreach ($this->_beanDefinitionProviders as $provider) {
            $ret = array_merge($ret, $provider->getBeansByClass($class));
        }
        $this->_beanDefCache->store($cacheKey, $ret);
        return $ret;
    }
(non-PHPdoc)
@see Ding\Bean.IBeanDefinitionProvider::getBeanDefinitionByClass()