public function get($id, Cargo\Container $container = null) {
        if ($this->container->has($id) || !class_exists($id)) {
            return $this->container->get($id, $container ?: $this);
        }

        $this->add($id, null);
        return $this->get($id, $container);
    }
public function get($id, Cargo\Container $container = null) {
        if ($this->container->has($id) || !class_exists($id)) {
            return $this->container->get($id, $container ?: $this);
        }

        $this->add($id, null);
        return $this->get($id, $container);
    }
public function get ( $ id , Cargo \ Container $ container = null ) { if ( $ this -> container -> has ( $ id ) || ! class_exists ( $ id ) ) { return $ this -> container -> get ( $ id , $ container ? : $ this ) ; } $ this -> add ( $ id , null ) ; return $ this -> get ( $ id , $ container ) ; }
fetch from container, or if the service is a class name, we'll try to resolve it
automatically
fetch from container or if the service is a class name we ll try to resolve it automatically