Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 25, 2023
1 parent 3f7008d commit 7945f8e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Components/swoole/src/Util/Co/ChannelContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @method static void removeChannel(string $id)
*/
#[
\Imi\Facade\Annotation\Facade(class: 'Yurun\\Swoole\\CoPool\\ChannelContainer')
\Imi\Facade\Annotation\Facade(class: \Yurun\Swoole\CoPool\ChannelContainer::class)
]
class ChannelContainer extends BaseFacade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Http/Message/Proxy/RequestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
* @method static \Psr\Http\Message\UriInterface getAppUri(?string $serverName = NULL)
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\Http\\Message\\Contract\\IHttpRequest', name: 'request')
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\Http\Message\Contract\IHttpRequest::class, name: 'request')
]
class RequestProxy extends BaseRequestContextProxy
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Http/Message/Proxy/RequestProxyObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
* @method static \Psr\Http\Message\UriInterface getAppUri(?string $serverName = NULL)
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\Http\\Message\\Contract\\IHttpRequest', name: 'request'),
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\Http\Message\Contract\IHttpRequest::class, name: 'request'),
\Imi\Bean\Annotation\Bean(name: 'HttpRequestProxy', recursion: false)
]
class RequestProxyObject extends BaseRequestContextProxy implements \Imi\Server\Http\Message\Contract\IHttpRequest
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Http/Message/Proxy/ResponseProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
* @method static \Imi\Util\Http\Contract\IMessage setBody(\Psr\Http\Message\StreamInterface $body)
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\Http\\Message\\Contract\\IHttpResponse', name: 'response')
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\Http\Message\Contract\IHttpResponse::class, name: 'response')
]
class ResponseProxy extends BaseRequestContextProxy
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Http/Message/Proxy/ResponseProxyObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
* @method static \Imi\Util\Http\Contract\IMessage setBody(\Psr\Http\Message\StreamInterface $body)
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\Http\\Message\\Contract\\IHttpResponse', name: 'response'),
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\Http\Message\Contract\IHttpResponse::class, name: 'response'),
\Imi\Bean\Annotation\Bean(name: 'HttpResponseProxy', recursion: false)
]
class ResponseProxyObject extends BaseRequestContextProxy implements \Imi\Server\Http\Message\Contract\IHttpResponse
Expand Down
2 changes: 1 addition & 1 deletion src/Server/TcpServer/Message/Proxy/ReceiveDataProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @method static \Imi\Util\Socket\IPEndPoint getClientAddress()
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\TcpServer\\Message\\IReceiveData', name: 'receiveData'),
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\TcpServer\Message\IReceiveData::class, name: 'receiveData'),
\Imi\Bean\Annotation\Bean(name: 'TcpReceiveDataProxy', recursion: false)
]
class ReceiveDataProxy extends BaseRequestContextProxy implements \Imi\Server\TcpServer\Message\IReceiveData
Expand Down
2 changes: 1 addition & 1 deletion src/Server/UdpServer/Message/Proxy/PacketDataProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @method static \Imi\Util\Socket\IPEndPoint getClientAddress()
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\UdpServer\\Message\\IPacketData', name: 'packetData'),
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\UdpServer\Message\IPacketData::class, name: 'packetData'),
\Imi\Bean\Annotation\Bean(name: 'UdpPacketDataProxy', recursion: false)
]
class PacketDataProxy extends BaseRequestContextProxy implements \Imi\Server\UdpServer\Message\IPacketData
Expand Down
2 changes: 1 addition & 1 deletion src/Server/WebSocket/Message/Proxy/FrameProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @method static \Imi\Util\Socket\IPEndPoint getClientAddress()
*/
#[
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: 'Imi\\Server\\WebSocket\\Message\\IFrame', name: 'frame'),
\Imi\RequestContextProxy\Annotation\RequestContextProxy(class: \Imi\Server\WebSocket\Message\IFrame::class, name: 'frame'),
\Imi\Bean\Annotation\Bean(name: 'WebSocketFrameProxy', recursion: false)
]
class FrameProxy extends BaseRequestContextProxy implements \Imi\Server\WebSocket\Message\IFrame
Expand Down

0 comments on commit 7945f8e

Please sign in to comment.