src/ClassResolver.php
public function bind($abstract, $concrete, $protect = false)
    {
        if ($protect) {
            $concrete = $this->container->protect($concrete);
        }

        $this->container[$abstract] = $concrete;
    }
public function bind($abstract, $concrete, $protect = false)
    {
        if ($protect) {
            $concrete = $this->container->protect($concrete);
        }

        $this->container[$abstract] = $concrete;
    }
Bind an abstract definition to a concrete implementation.

@param string $abstract
@param string|\Closure $concrete
@param bool $protect