public function toProvider(string $provider, string $context = '') : self
    {
        $this->untarget = null;
        $this->validate->toProvider($provider);
        $this->bound = (new DependencyFactory)->newProvider(new \ReflectionClass($provider), $context);
        $this->container->add($this);

        return $this;
    }
public function toProvider(string $provider, string $context = '') : self
    {
        $this->untarget = null;
        $this->validate->toProvider($provider);
        $this->bound = (new DependencyFactory)->newProvider(new \ReflectionClass($provider), $context);
        $this->container->add($this);

        return $this;
    }
public function toProvider ( string $ provider , string $ context = '' ) : self { $ this -> untarget = null ; $ this -> validate -> toProvider ( $ provider ) ; $ this -> bound = ( new DependencyFactory ) -> newProvider ( new \ ReflectionClass ( $ provider ) , $ context ) ; $ this -> container -> add ( $ this ) ; return $ this ; }
Bind to provider
Bind to provider