Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
I see use Swoole\Http\Server but not swoole_http_server in readme document.
It means i can use Swoole\Server or Swoole\Client too ? I want know how many class i can use by the namespace way.
What did you expect to see?
Changelog about this.
What did you see instead?
none.
What version of Swoole are you using (php --ri swoole)?
none.
What is your machine environment used (including version of kernel & php & gcc) ?
none.
If you are using ssl, what is your openssl version?
none.
Yes, swoole_http_server is an alias for Swoole\Http\Server
| Class | Alias |
|---|---|
| swoole_server | Swoole\Server |
| swoole_client | Swoole\Client |
| swoole_process | Swoole\Process |
| swoole_timer | Swoole\Timer |
| swoole_table | Swoole\Table |
| swoole_lock | Swoole\Lock |
| swoole_atomic | Swoole\Atomic |
| swoole_buffer | Swoole\Buffer |
| swoole_redis | Swoole\Redis |
| swoole_event | Swoole\Event |
| swoole_mysql | Swoole\MySQL |
| swoole_mmap | Swoole\Mmap |
| swoole_channel | Swoole\Channel |
| swoole_serialize | Swoole\Serialize |
| swoole_http_server | Swoole\Http\Server |
| swoole_http_client | Swoole\Http\Client |
| swoole_http_request | Swoole\Http\Request |
| swoole_http_response | Swoole\Http\Response |
| swoole_websocket_server | Swoole\WebSocket\Server |
Thanks, It's excellent.
| Class | Alias |
| -------------------------- | ------------------------------- |
| swoole_server | Swoole\Server |
| swoole_timer | Swoole\Timer |
| swoole_event | Swoole\Event |
| swoole_async | Swoole\Async |
| swoole_connection_iterator | Swoole\Connection\Iterator |
| swoole_exception | Swoole\Exception |
| swoole_atomic | Swoole\Atomic |
| swoole_atomic_long | Swoole\Atomic\Long |
| swoole_buffer | Swoole\Buffer |
| swoole_channel | Swoole\Channel |
| swoole_client | Swoole\Client |
| swoole_client_coro | Swoole\Client |
| swoole_http_client | Swoole\Http\Client |
| swoole_http_client_coro | Swoole\Coroutine\Http\Client |
| swoole_http_server | Swoole\Http\Server |
| swoole_http_response | Swoole\Http\Response |
| swoole_http_request | Swoole\Http\Request |
| swoole_http2_client | Swoole\Http2\Client |
| swoole_http2_response | Swoole\Http2\Response |
| swoole_lock | Swoole\Lock |
| swoole_mmap | Swoole\Mmap |
| swoole_mysql | Swoole\MySQL |
| swoole_mysql_exception | Swoole\MySQL\Exception |
| swoole_process | Swoole\Process |
| swoole_redis | Swoole\Redis |
| swoole_redis_server | Swoole\Redis\Server |
| swoole_serialize | Swoole\Serialize |
| swoole_server_port | Swoole\Server\Port |
| swoole_table | Swoole\Table |
| swoole_table_row | Swoole\Table\Row |
| swoole_websocket_server | Swoole\WebSocket\Server |
| swoole_websocket_frame | Swoole\WebSocket\Frame |
replace SWOOLE_CLASS_ALIAS\(([\w_]+), *"([\w\\]+)"\); to |$1|$2|
it's full-fledged version.
Rango can consider completing Alias for coroutine Class.
Most helpful comment
| Class | Alias |
| -------------------------- | ------------------------------- |
| swoole_server | Swoole\Server |
| swoole_timer | Swoole\Timer |
| swoole_event | Swoole\Event |
| swoole_async | Swoole\Async |
| swoole_connection_iterator | Swoole\Connection\Iterator |
| swoole_exception | Swoole\Exception |
| swoole_atomic | Swoole\Atomic |
| swoole_atomic_long | Swoole\Atomic\Long |
| swoole_buffer | Swoole\Buffer |
| swoole_channel | Swoole\Channel |
| swoole_client | Swoole\Client |
| swoole_client_coro | Swoole\Client |
| swoole_http_client | Swoole\Http\Client |
| swoole_http_client_coro | Swoole\Coroutine\Http\Client |
| swoole_http_server | Swoole\Http\Server |
| swoole_http_response | Swoole\Http\Response |
| swoole_http_request | Swoole\Http\Request |
| swoole_http2_client | Swoole\Http2\Client |
| swoole_http2_response | Swoole\Http2\Response |
| swoole_lock | Swoole\Lock |
| swoole_mmap | Swoole\Mmap |
| swoole_mysql | Swoole\MySQL |
| swoole_mysql_exception | Swoole\MySQL\Exception |
| swoole_process | Swoole\Process |
| swoole_redis | Swoole\Redis |
| swoole_redis_server | Swoole\Redis\Server |
| swoole_serialize | Swoole\Serialize |
| swoole_server_port | Swoole\Server\Port |
| swoole_table | Swoole\Table |
| swoole_table_row | Swoole\Table\Row |
| swoole_websocket_server | Swoole\WebSocket\Server |
| swoole_websocket_frame | Swoole\WebSocket\Frame |
replace
SWOOLE_CLASS_ALIAS\(([\w_]+), *"([\w\\]+)"\);to|$1|$2|it's full-fledged version.
Rango can consider completing Alias for coroutine Class.