isInUse() : boolean
Determine if your environment is currently in use. Typically, you'll look for the existence of some object, constant or class that indicates your environment is being used.
This is the interface that must be implemented if you'd like to support a new environment for Dewdrop applications. Add your Env class to \Dewdrop\Env::getAll() to hook into the bootstrap and configuration lifecycle in Dewdrop.
getConfigData( $file = null) : array
Get the configuration data Dewdrop needs to operate. Should be of this shape:
[ 'bootstrap' => '\Your\Bootstrap\ClassName', 'db' => [ 'type' => 'pgsql|mysql', 'username' => 'user', 'password' => '123456!', 'name' => 'my_database', 'host' => 'localhost' ] ]
getBootstrapClass() : string
Get the bootstrap class that should be used for your environment. Will often come from the config data. However, if you want to allow users to override the bootstrap class in your environment via some other constant or configuration flag, you can implement that logic here.
providePimpleSessionResource(\Pimple $pimple) : void
Provide session and session.storage resources for Pimple. The "session" resource should be the environment-specific session object typically used (e.g.
Zend_Session_Namespace, WP_Session, etc) and "session.storage" should be an implementor of \Dewdrop\Session\SessionStorageInterface that wraps that platform- specific API.