public function addService($key, $callable) {
        $instance = Container::newInstance($callable);
        $this->container->set($key, function() use ($instance) {
            return $instance;
        });
    }
public function addService($key, $callable) {
        $instance = Container::newInstance($callable);
        $this->container->set($key, function() use ($instance) {
            return $instance;
        });
    }
public function addService ( $ key , $ callable ) { $ instance = Container :: newInstance ( $ callable ) ; $ this -> container -> set ( $ key , function ( ) use ( $ instance ) { return $ instance ; } ) ; }
Add an instance of class in container with custom key

@return void
Add an instance of class in container with custom key