Skip to content

Commit 1e41264

Browse files
Add Lando support in php.ts
1 parent bea3f2a commit 1e41264

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/support/php.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let hasVendor = projectPathExists("vendor/autoload.php");
2828
const hasBootstrap = projectPathExists("bootstrap/app.php");
2929

3030
let phpEnvKey: PhpEnvironment | null = null;
31-
const phpEnvsThatUseRelativePaths: PhpEnvironment[] = ["sail"];
31+
const phpEnvsThatUseRelativePaths: PhpEnvironment[] = ["sail", "lando"];
3232

3333
export const initVendorWatchers = () => {
3434
// fs.readdirSync(internalVendorPath()).forEach((file) => {
@@ -117,6 +117,11 @@ const getPhpCommand = (): string => {
117117
command: "./vendor/bin/sail php",
118118
});
119119

120+
options.set("lando", {
121+
check: "lando info",
122+
command: "lando ssh -c 'php {code}'",
123+
});
124+
120125
for (const [key, option] of options.entries()) {
121126
if (phpEnv !== "auto" && phpEnv !== key) {
122127
continue;

0 commit comments

Comments
 (0)