$root : string
The root of the WordPress installation (i.e. the folder containing wp-config.php).
This utility makes it easier to navigate the WP environment by supplying quick access to common Dewdrop paths. Being out in the middle of the plugins folder can make it hard to find your way around, so rather than manually traversing back up the filesystem with a bunch of "__DIR__ . '/.
./../../../../'" messiness, just use the methods in this class to find your way around.
detectPluginRoot() : string
Detect the plugin or app root folder. In a standalone app, we traverse up the filesystem until we exit the Composer-created vendor folder. Using this approach, rather than just grabbing the current working directory, allows Dewdrop to work consistently regardless of whether the application is all running inside the document root or with only a front controller in the document root and the remainder of the code stored elsewhere. In a WordPress app, it is the folder housing the plugin based on Dewdrop.