Skip to content

Commit

Permalink
Additional checks before initiating services into the container
Browse files Browse the repository at this point in the history
  • Loading branch information
hasukmistry committed Apr 23, 2024
1 parent 646d42c commit 43ed8f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ function () {
$config_dir = apply_filters( 'wp_dev_config_dir', WP_CONTENT_DIR . '/config' );
$config_file = apply_filters( 'wp_dev_config_file', 'services.yaml' );

// Bail early if the config file has not been created yet.
if ( ! file_exists( $config_dir . '/' . $config_file ) ) {
return;
}

// Set config service.
Service::instance()
->set_config(
Expand Down

0 comments on commit 43ed8f1

Please sign in to comment.