src/Providers/AbstractProvider.php
public function singleton($name, $object)
    {
        if (IOC::hasSingleton($name)) {
            return IOC::singleton($name);
        } else {
            IOC::singleton($name, $object);
            return $object;
        }
    }
public function singleton($name, $object)
    {
        if (IOC::hasSingleton($name)) {
            return IOC::singleton($name);
        } else {
            IOC::singleton($name, $object);
            return $object;
        }
    }
public function singleton ( $ name , $ object ) { if ( IOC :: hasSingleton ( $ name ) ) { return IOC :: singleton ( $ name ) ; } else { IOC :: singleton ( $ name , $ object ) ; return $ object ; } }
Tells the container the service should be a singleton

@param $name
@param $object

@return mixed
Tells the container the service should be a singleton