<?php

if ( ! defined( 'ABSPATH' ) ) exit;

return function ($application) {

    $devDir = ZENOCHATBOT_PLUGIN_DIR . 'dev';
    $devBootstrap = $devDir . '/bootstrap.php';

    if (!is_dir($devDir)) {
        return;
    }

    if (!file_exists($devBootstrap)) {
        return;
    }

    $bootstrap = require $devBootstrap;

    if (is_callable($bootstrap)) {
        $bootstrap($application);
    }
};
