How to use share api with nextCloud 13?

Hi,
i wirte my own shareBackend. In class implements the interface \OCP\Share_Backend_Collection with all function.

How to use the shareBacken? In pre version i use the function from class \OCP\Share. Or i must use \OC::$server->getShareManager() ?

Best regards

michael