first commit

This commit is contained in:
编码猿
2024-09-27 01:06:04 +08:00
commit cbed24c40d
205 changed files with 8732 additions and 0 deletions

View File

@@ -0,0 +1 @@
1b33a23c-7810-4eca-a322-aa781f6736f0

View File

@@ -0,0 +1,3 @@
<?php
// Composer autoload
require_once dirname(__DIR__) . '/vendor/autoload.php';

14
Swoft_BackEndApi/bin/swoft Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env php
<?php declare(strict_types=1);
// Bootstrap
require_once __DIR__ . '/bootstrap.php';
\Swoole\Runtime::enableCoroutine();
Swoole\Coroutine::set([
'max_coroutine' => 300000,
]);
// Run application
(new \App\Application())->run();

24
Swoft_BackEndApi/bin/test.php Executable file
View File

@@ -0,0 +1,24 @@
<?php
trait Tr
{
public function traitMethod()
{
}
}
class A
{
use Tr;
public function method()
{
}
}
$a = new ReflectionClass(A::class);
foreach ($a->getTraits() as $traitClass){
var_dump($traitClass->getMethods());
}