src/Di/Container.php
public function bindFactory(string $name, $definition)
    {
        $this->definitions[$name] = new Factory($name, $definition);
        return $this;
    }
public function bindFactory(string $name, $definition)
    {
        $this->definitions[$name] = new Factory($name, $definition);
        return $this;
    }
public function bindFactory ( string $ name , $ definition ) { $ this -> definitions [ $ name ] = new Factory ( $ name , $ definition ) ; return $ this ; }
Add a factory definition

@param string $name
@param mixed $definition
@return $this
Add a factory definition