src/mg/Ding/Bean/Provider/Xml.php
public function afterConfig()
    {
        $this->_load();
        foreach($this->_simpleXml as $xmlName => $xml) {
            $simpleXmlBeans = $xml->xpath("/beans/bean");
            if (!empty($simpleXmlBeans)) {
                foreach ($simpleXmlBeans as $bean) {
                    // Skip anonymous beans
                    if (isset($bean->attributes()->class) && isset($bean->attributes()->id)) {
                        $class = (string)$bean->attributes()->class;
                        $name = (string)$bean->attributes()->id;
                        if (isset($bean->attributes()->{'factory-method'})) {
                            // Skip beans that specify class as their factory class
                            if (isset($bean->attributes()->{'factory-bean'})) {
                                $this->_addBeanToKnownByClass($class, $name);
                            }
                        } else {
                            $this->_addBeanToKnownByClass($class, $name);
                        }
                    }
                    if (isset($bean->attributes()->{'listens-on'})) {
                        $events = (string)$bean->attributes()->{'listens-on'};
                        $beanName = (string)$bean->attributes()->id;
                        foreach (explode(',', $events) as $eventName) {
                            $eventName = trim($eventName);
                            if (!isset($this->_knownBeansPerEvent[$eventName])) {
                                $this->_knownBeansPerEvent[$eventName] = array();
                            }
                            $this->_knownBeansPerEvent[$eventName][] = $beanName;
                        }
                    }
                }
            }
        }
    }
public function afterConfig()
    {
        $this->_load();
        foreach($this->_simpleXml as $xmlName => $xml) {
            $simpleXmlBeans = $xml->xpath("/beans/bean");
            if (!empty($simpleXmlBeans)) {
                foreach ($simpleXmlBeans as $bean) {
                    // Skip anonymous beans
                    if (isset($bean->attributes()->class) && isset($bean->attributes()->id)) {
                        $class = (string)$bean->attributes()->class;
                        $name = (string)$bean->attributes()->id;
                        if (isset($bean->attributes()->{'factory-method'})) {
                            // Skip beans that specify class as their factory class
                            if (isset($bean->attributes()->{'factory-bean'})) {
                                $this->_addBeanToKnownByClass($class, $name);
                            }
                        } else {
                            $this->_addBeanToKnownByClass($class, $name);
                        }
                    }
                    if (isset($bean->attributes()->{'listens-on'})) {
                        $events = (string)$bean->attributes()->{'listens-on'};
                        $beanName = (string)$bean->attributes()->id;
                        foreach (explode(',', $events) as $eventName) {
                            $eventName = trim($eventName);
                            if (!isset($this->_knownBeansPerEvent[$eventName])) {
                                $this->_knownBeansPerEvent[$eventName] = array();
                            }
                            $this->_knownBeansPerEvent[$eventName][] = $beanName;
                        }
                    }
                }
            }
        }
    }
(non-PHPdoc)
@see Ding\Bean\Lifecycle.IAfterConfigListener::afterConfig()