Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit e8fc6fa

Browse files
committed
fix: rebased on main
1 parent 52b59c8 commit e8fc6fa

5 files changed

Lines changed: 6 additions & 23 deletions

File tree

‎resources/js/electron-plugin/dist/index.js‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { app } from "electron";
1111
import { initialize } from "@electron/remote/main/index.js";
1212
import state from "./server/state.js";
1313
import { electronApp, optimizer } from "@electron-toolkit/utils";
14-
import { retrieveNativePHPConfig, retrievePhpIniSettings, runScheduler, startAPI, startPhpApp, startQueue, } from "./server/index.js";
14+
import { retrieveNativePHPConfig, retrievePhpIniSettings, runScheduler, startAPI, startPhpApp, } from "./server/index.js";
1515
import { notifyLaravel } from "./server/utils.js";
1616
import { resolve } from "path";
1717
import { stopAllProcesses } from "./server/api/childProcess.js";
@@ -77,7 +77,6 @@ class NativePHP {
7777
yield this.startElectronApi();
7878
state.phpIni = yield this.loadPhpIni();
7979
yield this.startPhpApp();
80-
yield this.startQueueWorker();
8180
this.startScheduler();
8281
yield notifyLaravel("booted");
8382
});
@@ -150,11 +149,6 @@ class NativePHP {
150149
this.processes.push(yield startPhpApp());
151150
});
152151
}
153-
startQueueWorker() {
154-
return __awaiter(this, void 0, void 0, function* () {
155-
this.processes.push(yield startQueue());
156-
});
157-
}
158152
startScheduler() {
159153
const now = new Date();
160154
const delay = (60 - now.getSeconds()) * 1000 + (1000 - now.getMilliseconds());

‎resources/js/electron-plugin/dist/server/index.js‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
88
});
99
};
1010
import startAPIServer from "./api.js";
11-
import { retrieveNativePHPConfig, retrievePhpIniSettings, serveApp, startQueueWorker, startScheduler, } from "./php.js";
11+
import { retrieveNativePHPConfig, retrievePhpIniSettings, serveApp, startScheduler, } from "./php.js";
1212
import { appendCookie } from "./utils.js";
1313
import state from "./state.js";
1414
export function startPhpApp() {
@@ -19,16 +19,6 @@ export function startPhpApp() {
1919
return result.process;
2020
});
2121
}
22-
export function startQueue() {
23-
return __awaiter(this, void 0, void 0, function* () {
24-
if (!process.env.NATIVE_PHP_SKIP_QUEUE) {
25-
return startQueueWorker(state.randomSecret, state.electronApiPort, state.phpIni);
26-
}
27-
else {
28-
return undefined;
29-
}
30-
});
31-
}
3222
export function runScheduler() {
3323
startScheduler(state.randomSecret, state.electronApiPort, state.phpIni);
3424
}

‎resources/js/electron-plugin/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
runScheduler,
1010
startAPI,
1111
startPhpApp,
12-
startQueue,
1312
} from "./server/index.js";
1413
import { notifyLaravel } from "./server/utils.js";
1514
import { resolve } from "path";

‎resources/js/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Dishy",
2+
"name": "NativePHP",
33
"version": "1.0.0",
44
"description": "A NativePHP Electron application",
55
"main": "./out/main/index.js",

‎resources/js/yarn.lock‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7362,9 +7362,9 @@ type-fest@^0.8.1:
73627362
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
73637363

73647364
type-fest@^4.18.2, type-fest@^4.20.0:
7365-
version "4.30.2"
7366-
resolved "https://registry.npmjs.org/type-fest/-/type-fest-4.30.2.tgz"
7367-
integrity sha512-UJShLPYi1aWqCdq9HycOL/gwsuqda1OISdBO3t8RlXQC4QvtuIz4b5FCfe2dQIWEpmlRExKmcTBfP1r9bhY7ig==
7365+
version "4.31.0"
7366+
resolved "https://registry.npmjs.org/type-fest/-/type-fest-4.31.0.tgz"
7367+
integrity sha512-yCxltHW07Nkhv/1F6wWBr8kz+5BGMfP+RbRSYFnegVb0qV/UMT0G0ElBloPVerqn4M2ZV80Ir1FtCcYv1cT6vQ==
73687368

73697369
type-is@~1.6.18:
73707370
version "1.6.18"

0 commit comments

Comments
 (0)