private function _instantiateByFactoryClass(BeanDefinition $definition)
    {
        $class = $definition->getClass();
        $rClass = $this->_reflectionFactory->getClass($class);
        $factoryMethodName = $definition->getFactoryMethod();
        $factoryMethod = $rClass->getMethod($factoryMethodName);
        $args = $this->_sortArgsWithNames($definition, $factoryMethod);
        return forward_static_call_array(array($class, $factoryMethodName), $args);
    }
private function _instantiateByFactoryClass(BeanDefinition $definition)
    {
        $class = $definition->getClass();
        $rClass = $this->_reflectionFactory->getClass($class);
        $factoryMethodName = $definition->getFactoryMethod();
        $factoryMethod = $rClass->getMethod($factoryMethodName);
        $args = $this->_sortArgsWithNames($definition, $factoryMethod);
        return forward_static_call_array(array($class, $factoryMethodName), $args);
    }
private function _instantiateByFactoryClass ( BeanDefinition $ definition ) { $ class = $ definition -> getClass ( ) ; $ rClass = $ this -> _reflectionFactory -> getClass ( $ class ) ; $ factoryMethodName = $ definition -> getFactoryMethod ( ) ; $ factoryMethod = $ rClass -> getMethod ( $ factoryMethodName ) ; $ args = $ this -> _sortArgsWithNames ( $ definition , $ factoryMethod ) ; return forward_static_call_array ( array ( $ class , $ factoryMethodName ) , $ args ) ; }
Instantiates a bean using a factory class.

@param BeanDefinition $definition

@return object
Instantiates a bean using a factory class .