Skip to content

Commit 3e35ba9

Browse files
committed
bounded to CLI mode
1 parent 26bb090 commit 3e35ba9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
/tasks

index.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
21
<?php
32

3+
if (php_sapi_name() !== "cli")
4+
{
5+
echo "PHP Android CLI can only run through CLI.";
6+
exit();
7+
}
8+
49
require_once __DIR__ . '/vendor/autoload.php';
510
require __DIR__ . '/GenerateCommand.php';
611

0 commit comments

Comments
 (0)