public function register($alias, $binding, $shared = false)
    {
        $this->registry[$alias] = new Resolver(new Builder($binding), $shared);
    }
public function register($alias, $binding, $shared = false)
    {
        $this->registry[$alias] = new Resolver(new Builder($binding), $shared);
    }
public function register ( $ alias , $ binding , $ shared = false ) { $ this -> registry [ $ alias ] = new Resolver ( new Builder ( $ binding ) , $ shared ) ; }
Register a binding with the registry

@param string $alias The alias used for registering the binding
@param \Closure|object|string|null $binding The binding requested to register
@param boolean $shared The type of the binding: shared (singleton) or not
Register a binding with the registry