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

            $definition->setFactory($factory);
        }
    }