Deeka Wong
Deeka Wong
Execute the command and paste the result below. Command: `uname -a && php -v && composer info | grep hyperf && php --ri swoole` ```bash Darwin huangdijiadeMacBook-Air.local 22.0.0 Darwin Kernel...
```php class User extends Model { public function foo() { return $this->morphOne(Foo::class); } public function getMorphClass() { return 'user'; } } class Post extends Model { public function foo() {...
https://github.com/hyperf/hyperf/blob/df6ac7bdb08e279cd490c7ba88195ea13e3d5b98/src/utils/src/Str.php#L630 ```php
场景: ```php use Guzzle\ClientInterface; class Foo { public function __constract(private ClientInterface $client) { } } ``` 如果我直接绑定 ```php return [ Guzzle\ClientInterface => function() { return new Guzzle\Client();} ]; ``` 那可能导致的情况是污染了整个容器,其他绑定了相同的依赖都会被影响到。面对这种情况目前我想到的解决方案是...
## Before you submit this issue, you has been search all existed issues and search the [documentation](https://hyperf.wiki) - [x] I've been search all existed issues - [x] I've been read...
when I run "reIndex PHP files", Report Error as: > command 'crane.rebuildSources' not found
如题
有接口获取所有在线channels吗?