Commit b3690c8
committed
minor #15319 [Runtime] Composer node
This PR was merged into the 5.3-dev branch.
Discussion
----------
[Runtime] Composer node `extra.runtime.options` is incorrect
Wanted to make a change to the `dotenv_path` so set `composer.json` (as per previous docs) to:
```
"runtime": {
"options": {
"dotenv_path": "environments/.env"
}
}
```
resulted in `autoload_runtime.php` of:
```
$runtime = new $runtime(($_SERVER['APP_RUNTIME_OPTIONS'] ?? []) + [
'options' =>
array (
'dotenv_path' => 'environments/.env',
),
'project_dir' => dirname(__DIR__, 1),
]);
```
Which obviously didn't work
so I propose the options node is removed from the docs and then `composer.json`:
```
"runtime": {
"dotenv_path": "environments/.env"
}
```
resulted in `autoload_runtime.php`
```
$runtime = new $runtime(($_SERVER['APP_RUNTIME_OPTIONS'] ?? []) + [
'dotenv_path' => 'environments/.env',
'project_dir' => dirname(__DIR__, 1),
]);
```
Worked for me.
Commits
-------
ffef3e6 Options node doesn't do anythingextra.runtime.options is incorrect (kieljohn)1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
| 319 | + | |
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
| |||
0 commit comments