src/mg/Ding/Bean/Lifecycle/BeanLifecycleManager.php
public function afterDefinition(BeanDefinition $bean)
    {
        $return = $bean;
        foreach ($this->_lifecyclers[BeanLifecycle::AfterDefinition] as $lifecycleListener) {
            $return = $lifecycleListener->afterDefinition($return);
        }
        return $return;
    }
public function afterDefinition(BeanDefinition $bean)
    {
        $return = $bean;
        foreach ($this->_lifecyclers[BeanLifecycle::AfterDefinition] as $lifecycleListener) {
            $return = $lifecycleListener->afterDefinition($return);
        }
        return $return;
    }
Runs the AfterDefinition point of the lifecycle.

@param string         $beanName Bean name.
@param BeanDefinition $bean     Actual definition.

@return BeanDefinition