I see that the docs are updated with new guides(maybe I missed them before tbh). One of the guides is using cockpit as library.
Is it possible to connect to an existing Cockpit instance in the same way as described in the guide and use all of the available helpers?
// Basic instance (uses current directory for config)
$cockpit = Cockpit::instance();
I tried with providing different config/env but no luck, it always creates new instance without data, yet I would like to connect in the same manner but use the data already created through the CMS.