-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # config/autoload/dependencies.php # config/autoload/listeners.php # config/autoload/logger.php
- Loading branch information
Showing
15 changed files
with
210 additions
and
136 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,5 +1,7 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* | ||
|
@@ -8,6 +10,11 @@ | |
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
*/ | ||
use Hyperf\Contract\ApplicationInterface; | ||
use Hyperf\Di\ClassLoader; | ||
use Psr\Container\ContainerInterface; | ||
use Symfony\Component\Console\Application; | ||
|
||
ini_set('display_errors', 'on'); | ||
ini_set('display_startup_errors', 'on'); | ||
|
||
|
@@ -21,10 +28,10 @@ | |
|
||
// Self-called anonymous function that creates its own scope and keep the global namespace clean. | ||
(function () { | ||
Hyperf\Di\ClassLoader::init(); | ||
/** @var Psr\Container\ContainerInterface $container */ | ||
ClassLoader::init(); | ||
/** @var ContainerInterface $container */ | ||
$container = require BASE_PATH . '/config/container.php'; | ||
/** @var Symfony\Component\Console\Application $application */ | ||
$application = $container->get(Hyperf\Contract\ApplicationInterface::class); | ||
/** @var Application $application */ | ||
$application = $container->get(ApplicationInterface::class); | ||
$application->run(); | ||
})(); |
Oops, something went wrong.