Skip to content

Commit

Permalink
Merge branch 'parent'
Browse files Browse the repository at this point in the history
# Conflicts:
#	config/autoload/dependencies.php
#	config/autoload/listeners.php
#	config/autoload/logger.php
  • Loading branch information
limingxinleo committed Jan 27, 2024
2 parents 032114e + c203b2f commit f036e35
Show file tree
Hide file tree
Showing 15 changed files with 210 additions and 136 deletions.
15 changes: 11 additions & 4 deletions bin/hyperf.php
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.
*
Expand All @@ -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');

Expand All @@ -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();
})();
Loading

0 comments on commit f036e35

Please sign in to comment.