diff --git a/BaseHandler.php b/BaseHandler.php index d74e59bf57df35c722c14e8bcfca47b2f5b89603..d490a5967dd965c27b92a52c47aaf076835f60db 100644 --- a/BaseHandler.php +++ b/BaseHandler.php @@ -106,12 +106,20 @@ abstract class BaseHandler implements BaseHandlerInterface { return FALSE; } + /** + * {@inheritdoc} + */ + public function isLocalDevMode() { + $local_dev_mode = getenv('LAKEDROPS_DEV_ENV'); + return !empty($local_dev_mode); + } + /** * {@inheritdoc} */ public function isCiContext() { $ci_project_dir = getenv('CI_PROJECT_DIR'); - return !empty($ci_project_dir ); + return !empty($ci_project_dir); } /** diff --git a/BaseHandlerInterface.php b/BaseHandlerInterface.php index 372847b9487dbcb97ab58d3d073a531e58e2ae74..7f485bb80af08f5d24e330dc701e0d1bcb00cb22 100644 --- a/BaseHandlerInterface.php +++ b/BaseHandlerInterface.php @@ -46,6 +46,11 @@ interface BaseHandlerInterface { */ public function isDevMode(); + /** + * @return bool + */ + public function isLocalDevMode(); + /** * Determine if the current process runs in a CI/CD context. *