public function singleton($name, $resolver = null, $override = false)
    {
        return $this->attach($name, $resolver, true, $override);
    }
public function singleton($name, $resolver = null, $override = false)
    {
        return $this->attach($name, $resolver, true, $override);
    }
public function singleton ( $ name , $ resolver = null , $ override = false ) { return $ this -> attach ( $ name , $ resolver , true , $ override ) ; }
A convenience method for adding a singleton.

@param string|array $name The name to index the asset by. Also excepts an array so as to alias.
@param Proem\Service\Asset|closure|object $resolver Some means of resolving this asset.
@param bool
A convenience method for adding a singleton .