On the Zend\ServiceManager\AbstractPluginManager class there is a flag autoAddInvokableClass set to true but is used only on the get method for this class. 
The setShared method is only on Zend\ServiceManager\ServiceManager class but there is no flag autoAddInvokableClass.

How can we do ? We must re-implement the setShared method on AbstractPluginManager ?