Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0228ed2241 | |||
| 168ceac6a8 | |||
| 40f1a49e77 |
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace PHPSTORM_META {
|
||||||
|
|
||||||
|
// Reflect
|
||||||
|
use Kiri\Di\Container;
|
||||||
|
use Psr\Container\ContainerInterface;
|
||||||
|
|
||||||
|
override(ContainerInterface::get(0), map('@'));
|
||||||
|
override(Container::get(0), map('@'));
|
||||||
|
override(Container::make(0), map('@'));
|
||||||
|
override(Container::create(0), map('@'));
|
||||||
|
// override(\Hyperf\Utils\Context::get(0), map('@'));
|
||||||
|
// override(\make(0), map('@'));
|
||||||
|
override(\di(0), map('@'));
|
||||||
|
override(\duplicate(0), map('@'));
|
||||||
|
|
||||||
|
}
|
||||||
+9
-1
@@ -8,10 +8,12 @@ use Http\Handler\Router;
|
|||||||
use Kiri\Abstracts\Component;
|
use Kiri\Abstracts\Component;
|
||||||
use Kiri\Abstracts\Config;
|
use Kiri\Abstracts\Config;
|
||||||
use Kiri\Consul\Agent;
|
use Kiri\Consul\Agent;
|
||||||
use Kiri\Di\ContainerInterface;
|
use Psr\Container\ContainerExceptionInterface;
|
||||||
|
use Psr\Container\ContainerInterface;
|
||||||
use Kiri\Events\EventProvider;
|
use Kiri\Events\EventProvider;
|
||||||
use Kiri\Exception\ConfigException;
|
use Kiri\Exception\ConfigException;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
|
use Psr\Container\NotFoundExceptionInterface;
|
||||||
use Server\Events\OnBeforeShutdown;
|
use Server\Events\OnBeforeShutdown;
|
||||||
use Server\Events\OnStart;
|
use Server\Events\OnStart;
|
||||||
use Server\Contract\OnCloseInterface;
|
use Server\Contract\OnCloseInterface;
|
||||||
@@ -58,6 +60,8 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OnBeforeShutdown $beforeShutdown
|
* @param OnBeforeShutdown $beforeShutdown
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function onBeforeShutdown(OnBeforeShutdown $beforeShutdown)
|
public function onBeforeShutdown(OnBeforeShutdown $beforeShutdown)
|
||||||
{
|
{
|
||||||
@@ -70,7 +74,10 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param OnStart $server
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function register(OnStart $server)
|
public function register(OnStart $server)
|
||||||
{
|
{
|
||||||
@@ -187,6 +194,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
* @param array $handler
|
* @param array $handler
|
||||||
* @param $data
|
* @param $data
|
||||||
* @return array
|
* @return array
|
||||||
|
* @throws \ReflectionException
|
||||||
*/
|
*/
|
||||||
private function handler(array $handler, $data): array
|
private function handler(array $handler, $data): array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user