first commit
This commit is contained in:
1
Swoft_BackEndApi/bin/.pydio
Normal file
1
Swoft_BackEndApi/bin/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
1b33a23c-7810-4eca-a322-aa781f6736f0
|
||||
3
Swoft_BackEndApi/bin/bootstrap.php
Executable file
3
Swoft_BackEndApi/bin/bootstrap.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
// Composer autoload
|
||||
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
||||
14
Swoft_BackEndApi/bin/swoft
Executable file
14
Swoft_BackEndApi/bin/swoft
Executable 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
24
Swoft_BackEndApi/bin/test.php
Executable 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());
|
||||
}
|
||||
Reference in New Issue
Block a user