public function addFactory(FactoryInterface $factory, $priority = 10)
    {
        $this->factoryList->insert($factory, $priority);
        return $this;
    }
public function addFactory(FactoryInterface $factory, $priority = 10)
    {
        $this->factoryList->insert($factory, $priority);
        return $this;
    }
public function addFactory ( FactoryInterface $ factory , $ priority = 10 ) { $ this -> factoryList -> insert ( $ factory , $ priority ) ; return $ this ; }
Adds a factory to the list of possible factories

@param   FactoryInterface    $factory    The factory to add
@param   integer             $priority   The priority
@return  Factory                         The factory
Adds a factory to the list of possible factories