|
@@ -0,0 +1,31 @@
|
|
|
+
|
|
|
+<?php
|
|
|
+
|
|
|
+ * This file is part of Hyperf.
|
|
|
+ *
|
|
|
+ * @link https:
|
|
|
+ * @document https:
|
|
|
+ * @contact group@hyperf.io
|
|
|
+ * @license https:
|
|
|
+ */
|
|
|
+ini_set('display_errors', 'on');
|
|
|
+ini_set('display_startup_errors', 'on');
|
|
|
+ini_set('memory_limit', '1G');
|
|
|
+
|
|
|
+error_reporting(E_ALL);
|
|
|
+
|
|
|
+! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
|
|
|
+
|
|
|
+require BASE_PATH . '/vendor/autoload.php';
|
|
|
+
|
|
|
+! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());
|
|
|
+
|
|
|
+
|
|
|
+(function () {
|
|
|
+ Hyperf\Di\ClassLoader::init();
|
|
|
+
|
|
|
+ $container = require BASE_PATH . '/config/container.php';
|
|
|
+
|
|
|
+ $application = $container->get(Hyperf\Contract\ApplicationInterface::class);
|
|
|
+ $application->run();
|
|
|
+})();
|