Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| abd530d146 | |||
| 7d5272816d | |||
|
|
72e50fbe50 |
@ -6,8 +6,7 @@ class ErrorHandler {
|
|||||||
|
|
||||||
this.url = options.url;
|
this.url = options.url;
|
||||||
this.apikey = options.apikey;
|
this.apikey = options.apikey;
|
||||||
this.catchError();
|
|
||||||
}
|
|
||||||
|
|
||||||
getErrorPosition(script) {
|
getErrorPosition(script) {
|
||||||
let totalLines = 0;
|
let totalLines = 0;
|
||||||
|
|||||||
@ -4,6 +4,16 @@ use Negundo\Client\{ SoftwareConfig, Dump, Task, NegundoMiddleware };
|
|||||||
|
|
||||||
use function DI\{ autowire, create, get, add };
|
use function DI\{ autowire, create, get, add };
|
||||||
|
|
||||||
|
if (! function_exists('getenvonce')) {
|
||||||
|
function getenvonce(string $name) : array|string|false
|
||||||
|
{
|
||||||
|
$value = getenv($name);
|
||||||
|
unset($_ENV[$name], $_SERVER[$name]);
|
||||||
|
putenv($name . "=");
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
SoftwareConfig::class => create(SoftwareConfig::class)->constructor(
|
SoftwareConfig::class => create(SoftwareConfig::class)->constructor(
|
||||||
serverUrl: getenvonce('NEGUNDO_SERVER'),
|
serverUrl: getenvonce('NEGUNDO_SERVER'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user