private function setDefinitionFactory(Definition $definition, array $array)
    {
        if (isset($array['factory'])) {
            $factory = [];
            foreach ($array['factory'] as $argument) {
                $factory[] = $this->convertArgument($argument);
            }

            $definition->setFactory($factory);
        }
    }
private function setDefinitionFactory(Definition $definition, array $array)
    {
        if (isset($array['factory'])) {
            $factory = [];
            foreach ($array['factory'] as $argument) {
                $factory[] = $this->convertArgument($argument);
            }

            $definition->setFactory($factory);
        }
    }
private function setDefinitionFactory ( Definition $ definition , array $ array ) { if ( isset ( $ array [ 'factory' ] ) ) { $ factory = [ ] ; foreach ( $ array [ 'factory' ] as $ argument ) { $ factory [ ] = $ this -> convertArgument ( $ argument ) ; } $ definition -> setFactory ( $ factory ) ; } }
Set the definition factory into definition object if it exists.

@param Definition $definition definition object to hydrate
@param array      $array      raw definition datas
Set the definition factory into definition object if it exists .