-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare to support Laravel structure
- Loading branch information
Showing
9 changed files
with
95 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace App\Console; | ||
|
||
class Kernal | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace App\Exceptions; | ||
|
||
use Quagga\Quagga\Foundation\Exceptions\Handler as ExceptionHandler; | ||
|
||
class Handler extends ExceptionHandler | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$app = new \Quagga\Quagga\Foundation\Application( | ||
!empty($_ENV['APP_BASE_PATH']) ? $_ENV['APP_BASE_PATH'] : dirname(__DIR__) | ||
); | ||
|
||
$app->singleton( | ||
\Quagga\Quagga\Foundation\Http\Kernel::class, | ||
\App\Http\Kernel::class | ||
); | ||
|
||
$app->singleton( | ||
\Quagga\Contracts\Debug\ExceptionHandler::class, | ||
\App\Exceptions\Handler::class | ||
); | ||
|
||
|
||
return $app; | ||
|
Submodule dashboard
updated
7 files
+0 −1 | composer.json | |
+3 −44 | composer.lock | |
+0 −1 | libs/composer/autoload_psr4.php | |
+0 −5 | libs/composer/autoload_static.php | |
+1 −43 | libs/composer/installed.json | |
+2 −13 | libs/composer/installed.php | |
+1 −1 | libs/quagga/constracts/composer.json |
Submodule react
updated
10 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,60 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
define('PULEENO_CMS_START', microtime(true)); | ||
|
||
use Quagga\Bootstrap; | ||
define('QUAGGA_CMS_START', microtime(true)); | ||
|
||
require __DIR__ . '/../app/bootstrap.php'; | ||
$bootstrap = Bootstrap::getInstance(); | ||
$bootstrap = \Quagga\Bootstrap::getInstance(); | ||
$bootstrap->boot(); | ||
|
||
exit(); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The Auto Loader | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a convenient, automatically generated class loader for | ||
| our application. We just need to utilize it! We'll simply require it | ||
| into the script here so that we don't have to worry about manual | ||
| loading any of our classes later on. It feels great to relax. | ||
| | ||
*/ | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Turn On The Lights | ||
|-------------------------------------------------------------------------- | ||
| | ||
| We need to illuminate 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 browser and delight our users. | ||
| | ||
*/ | ||
|
||
$app = require_once __DIR__.'/../bootstrap/app.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Run The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Once we have the application, we can handle the incoming request | ||
| through the kernel, and send the associated response back to | ||
| the client's browser allowing them to enjoy the creative | ||
| and wonderful application we have prepared for them. | ||
| | ||
*/ | ||
|
||
$kernel = $app->make(\Quagga\Contracts\Http\Kernel::class); | ||
|
||
$response = $kernel->handle( | ||
$request = \Quagga\Quagga\Http\Request::capture() | ||
); | ||
|
||
$response->send(); | ||
|
||
$kernel->terminate($request, $response); |