-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43: Add SF 3.0 support
- Loading branch information
Showing
46 changed files
with
794 additions
and
600 deletions.
There are no files selected for viewing
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,4 +1,4 @@ | ||
version: '2.7' | ||
version: '3' | ||
|
||
rpc: | ||
listen: tcp://127.0.0.1:6001 | ||
|
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 |
---|---|---|
@@ -1,38 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of Spiral package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
use App\App; | ||
|
||
// | ||
// If you forgot to configure some of this in your php.ini file, | ||
// then don't worry, we will set the standard environment | ||
// settings for you. | ||
// | ||
|
||
mb_internal_encoding('UTF-8'); | ||
error_reporting(E_ALL | E_STRICT); | ||
ini_set('display_errors', 'stderr'); | ||
\mb_internal_encoding('UTF-8'); | ||
\error_reporting(E_ALL | E_STRICT ^ E_DEPRECATED); | ||
\ini_set('display_errors', 'stderr'); | ||
|
||
// | ||
// Register Composer's auto loader. | ||
// | ||
require __DIR__ . '/vendor/autoload.php'; | ||
|
||
|
||
// | ||
// Initialize shared container, bindings, directories and etc. | ||
// | ||
$app = App::init(['root' => __DIR__]); | ||
$app = App::create( | ||
directories: ['root' => __DIR__], | ||
exceptionHandler: \App\Exception\Handler::class | ||
)->run(); | ||
|
||
if ($app !== null) { | ||
$code = (int)$app->serve(); | ||
exit($code); | ||
if ($app === null) { | ||
exit(255); | ||
} | ||
|
||
$code = (int)$app->serve(); | ||
exit($code); |
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
Oops, something went wrong.