This repository was archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathoctopy
More file actions
executable file
·51 lines (44 loc) · 1.43 KB
/
octopy
File metadata and controls
executable file
·51 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env php
<?php
/**
* ___ _
* / _ \ ___| |_ ___ _ __ _ _
* | | | |/ __| __/ _ \| '_ \| | | |
* | |_| | (__| || (_) | |_) | |_| |
* \___/ \___|\__\___/| .__/ \__, |
* |_| |___/.
* @author : Supian M <supianidz@gmail.com>
* @link : framework.octopy.id
* @license : MIT
*/
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to Octopy PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the terminal and delight our users.
|
*/
$app = require 'system/Octopy.php';
/*
|--------------------------------------------------------------------------
| Run The Octopy Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(App\Console\Kernel::class);
$status = $kernel->handle(
$input = $app->make(Octopy\Console\Argv::class, [
'argv' => $argv,
]),
$app->make(Octopy\Console\Output::class)
);
$kernel->terminate($input);
die($status);