1 | <?php |
||
2 | /** |
||
3 | * Shared bootstrap file |
||
4 | */ |
||
5 | |||
6 | // Define path constants |
||
7 | define('CRAFT_BASE_PATH', __DIR__); |
||
8 | define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH . '/vendor'); |
||
9 | |||
10 | // Load Composer's autoloader |
||
11 | require_once CRAFT_VENDOR_PATH . '/autoload.php'; |
||
12 | |||
13 | // Load dotenv? |
||
14 | if (class_exists(Dotenv\Dotenv::class)) { |
||
0 ignored issues
–
show
|
|||
15 | // By default, this will allow .env file values to override environment variables |
||
16 | // with matching names. Use `createUnsafeImmutable` to disable this. |
||
17 | Dotenv\Dotenv::createUnsafeMutable(CRAFT_BASE_PATH)->safeLoad(); |
||
18 | } |
||
19 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths