Foundation/Core.php
public function bind($name, \Closure $callable, $singleton = false)
    {
        $this->_ioc[$name] = array(
            'closure'   => $callable,
            'singleton' => (bool) $singleton,
            'instance'  => null
        );

        return $this;
    }
public function bind($name, \Closure $callable, $singleton = false)
    {
        $this->_ioc[$name] = array(
            'closure'   => $callable,
            'singleton' => (bool) $singleton,
            'instance'  => null
        );

        return $this;
    }
public function bind ( $ name , \ Closure $ callable , $ singleton = false ) { $ this -> _ioc [ $ name ] = array ( 'closure' => $ callable , 'singleton' => ( bool ) $ singleton , 'instance' => null ) ; return $ this ; }
Registers a new object container.

@param string $name
@param \Closure $callable
@param bool $singleton
@return \m\Foundation\Core
Registers a new object container .