在 Applications/jd_forklift_gateway項(xiàng)目里新增了 Common 和 mns 兩個(gè)子文件夾,請問如何修改 autoload或者修改其他地方,能加載這些新增的類文件呢?
說明:
mns 目錄下的文件自有命名空間,不能修改。
AliyunMNSHelper.php 的命名空間已經(jīng)修改為Workerman\Common\AliyunMNSHelper。
這些文件在 workerman項(xiàng)目中能正常加載。
.
├── Applications
│?? └── jd_forklift_gateway
│?? ├── Common
│?? │?? ├── AliyunMNSHelper.php
│?? │?? └── AliyunOSSHelper.php
│?? ├── Events.php
│?? ├── mns
│?? │?? ├── AliyunMNS
│?? │?? │?? ├── AsyncCallback.php
│?? │?? │?? ├── Client.php
│?? │?? │?? ├── Common
│?? │?? │?? │?? └── XMLParser.php
│?? │?? │?? ├── Config.php
│?? │?? │?? ├── Constants.php
│?? │?? │?? ├── Exception
│?? │?? │?? │?? ├── BatchDeleteFailException.php
│?? │?? │?? │?? ├── BatchSendFailException.php
│?? │?? │?? │?? ├── InvalidArgumentException.php
│?? │?? │?? │?? ├── MalformedXMLException.php
│?? │?? │?? │?? ├── MessageNotExistException.php
│?? │?? │?? │?? ├── MnsException.php
│?? │?? │?? │?? ├── QueueAlreadyExistException.php
│?? │?? │?? │?? ├── QueueNotExistException.php
│?? │?? │?? │?? ├── ReceiptHandleErrorException.php
│?? │?? │?? │?? ├── SubscriptionAlreadyExistException.php
│?? │?? │?? │?? ├── SubscriptionNotExistException.php
│?? │?? │?? │?? ├── TopicAlreadyExistException.php
│?? │?? │?? │?? └── TopicNotExistException.php
│?? │?? │?? ├── Http
│?? │?? │?? │?? └── HttpClient.php
│?? │?? │?? ├── Model
│?? │?? │?? │?? ├── AccountAttributes.php
│?? │?? │?? │?? ├── BatchSmsAttributes.php
│?? │?? │?? │?? ├── DeleteMessageErrorItem.php
│?? │?? │?? │?? ├── MailAttributes.php
│?? │?? │?? │?? ├── MessageAttributes.php
│?? │?? │?? │?? ├── Message.php
│?? │?? │?? │?? ├── QueueAttributes.php
│?? │?? │?? │?? ├── SendMessageRequestItem.php
│?? │?? │?? │?? ├── SendMessageResponseItem.php
│?? │?? │?? │?? ├── SmsAttributes.php
│?? │?? │?? │?? ├── SubscriptionAttributes.php
│?? │?? │?? │?? ├── TopicAttributes.php
│?? │?? │?? │?? ├── UpdateSubscriptionAttributes.php
│?? │?? │?? │?? └── WebSocketAttributes.php
│?? │?? │?? ├── Queue.php
│?? │?? │?? ├── Requests
│?? │?? │?? │?? ├── BaseRequest.php
│?? │?? │?? │?? ├── BatchDeleteMessageRequest.php
│?? │?? │?? │?? ├── BatchPeekMessageRequest.php
│?? │?? │?? │?? ├── BatchReceiveMessageRequest.php
│?? │?? │?? │?? ├── BatchSendMessageRequest.php
│?? │?? │?? │?? ├── ChangeMessageVisibilityRequest.php
│?? │?? │?? │?? ├── CreateQueueRequest.php
│?? │?? │?? │?? ├── CreateTopicRequest.php
│?? │?? │?? │?? ├── DeleteMessageRequest.php
│?? │?? │?? │?? ├── DeleteQueueRequest.php
│?? │?? │?? │?? ├── DeleteTopicRequest.php
│?? │?? │?? │?? ├── GetAccountAttributesRequest.php
│?? │?? │?? │?? ├── GetQueueAttributeRequest.php
│?? │?? │?? │?? ├── GetSubscriptionAttributeRequest.php
│?? │?? │?? │?? ├── GetTopicAttributeRequest.php
│?? │?? │?? │?? ├── ListQueueRequest.php
│?? │?? │?? │?? ├── ListSubscriptionRequest.php
│?? │?? │?? │?? ├── ListTopicRequest.php
│?? │?? │?? │?? ├── PeekMessageRequest.php
│?? │?? │?? │?? ├── PublishMessageRequest.php
│?? │?? │?? │?? ├── ReceiveMessageRequest.php
│?? │?? │?? │?? ├── SendMessageRequest.php
│?? │?? │?? │?? ├── SetAccountAttributesRequest.php
│?? │?? │?? │?? ├── SetQueueAttributeRequest.php
│?? │?? │?? │?? ├── SetSubscriptionAttributeRequest.php
│?? │?? │?? │?? ├── SetTopicAttributeRequest.php
│?? │?? │?? │?? ├── SubscribeRequest.php
│?? │?? │?? │?? └── UnsubscribeRequest.php
│?? │?? │?? ├── Responses
│?? │?? │?? │?? ├── BaseResponse.php
│?? │?? │?? │?? ├── BatchDeleteMessageResponse.php
│?? │?? │?? │?? ├── BatchPeekMessageResponse.php
│?? │?? │?? │?? ├── BatchReceiveMessageResponse.php
│?? │?? │?? │?? ├── BatchSendMessageResponse.php
│?? │?? │?? │?? ├── ChangeMessageVisibilityResponse.php
│?? │?? │?? │?? ├── CreateQueueResponse.php
│?? │?? │?? │?? ├── CreateTopicResponse.php
│?? │?? │?? │?? ├── DeleteMessageResponse.php
│?? │?? │?? │?? ├── DeleteQueueResponse.php
│?? │?? │?? │?? ├── DeleteTopicResponse.php
│?? │?? │?? │?? ├── GetAccountAttributesResponse.php
│?? │?? │?? │?? ├── GetQueueAttributeResponse.php
│?? │?? │?? │?? ├── GetSubscriptionAttributeResponse.php
│?? │?? │?? │?? ├── GetTopicAttributeResponse.php
│?? │?? │?? │?? ├── ListQueueResponse.php
│?? │?? │?? │?? ├── ListSubscriptionResponse.php
│?? │?? │?? │?? ├── ListTopicResponse.php
│?? │?? │?? │?? ├── MnsPromise.php
│?? │?? │?? │?? ├── PeekMessageResponse.php
│?? │?? │?? │?? ├── PublishMessageResponse.php
│?? │?? │?? │?? ├── ReceiveMessageResponse.php
│?? │?? │?? │?? ├── SendMessageResponse.php
│?? │?? │?? │?? ├── SetAccountAttributesResponse.php
│?? │?? │?? │?? ├── SetQueueAttributeResponse.php
│?? │?? │?? │?? ├── SetSubscriptionAttributeResponse.php
│?? │?? │?? │?? ├── SetTopicAttributeResponse.php
│?? │?? │?? │?? ├── SubscribeResponse.php
│?? │?? │?? │?? └── UnsubscribeResponse.php
│?? │?? │?? ├── Signature
│?? │?? │?? │?? └── Signature.php
│?? │?? │?? ├── Topic.php
│?? │?? │?? └── Traits
│?? │?? │?? ├── MessageIdAndMD5.php
│?? │?? │?? ├── MessagePropertiesForPeek.php
│?? │?? │?? ├── MessagePropertiesForPublish.php
│?? │?? │?? ├── MessagePropertiesForReceive.php
│?? │?? │?? └── MessagePropertiesForSend.php
│?? │?? ├── GuzzleHttp
│?? │?? │?? ├── ClientInterface.php
│?? │?? │?? ├── Client.php
│?? │?? │?? ├── Cookie
│?? │?? │?? │?? ├── CookieJarInterface.php
│?? │?? │?? │?? ├── CookieJar.php
│?? │?? │?? │?? ├── FileCookieJar.php
│?? │?? │?? │?? ├── SessionCookieJar.php
│?? │?? │?? │?? └── SetCookie.php
│?? │?? │?? ├── Exception
│?? │?? │?? │?? ├── BadResponseException.php
│?? │?? │?? │?? ├── ClientException.php
│?? │?? │?? │?? ├── ConnectException.php
│?? │?? │?? │?? ├── GuzzleException.php
│?? │?? │?? │?? ├── RequestException.php
│?? │?? │?? │?? ├── SeekException.php
│?? │?? │?? │?? ├── ServerException.php
│?? │?? │?? │?? ├── TooManyRedirectsException.php
│?? │?? │?? │?? └── TransferException.php
│?? │?? │?? ├── functions_include.php
│?? │?? │?? ├── functions.php
│?? │?? │?? ├── Handler
│?? │?? │?? │?? ├── CurlFactoryInterface.php
│?? │?? │?? │?? ├── CurlFactory.php
│?? │?? │?? │?? ├── CurlHandler.php
│?? │?? │?? │?? ├── CurlMultiHandler.php
│?? │?? │?? │?? ├── EasyHandle.php
│?? │?? │?? │?? ├── MockHandler.php
│?? │?? │?? │?? ├── Proxy.php
│?? │?? │?? │?? └── StreamHandler.php
│?? │?? │?? ├── HandlerStack.php
│?? │?? │?? ├── MessageFormatter.php
│?? │?? │?? ├── Middleware.php
│?? │?? │?? ├── Pool.php
│?? │?? │?? ├── PrepareBodyMiddleware.php
│?? │?? │?? ├── Promise
│?? │?? │?? │?? ├── AggregateException.php
│?? │?? │?? │?? ├── CancellationException.php
│?? │?? │?? │?? ├── EachPromise.php
│?? │?? │?? │?? ├── FulfilledPromise.php
│?? │?? │?? │?? ├── functions_include.php
│?? │?? │?? │?? ├── functions.php
│?? │?? │?? │?? ├── PromiseInterface.php
│?? │?? │?? │?? ├── Promise.php
│?? │?? │?? │?? ├── PromisorInterface.php
│?? │?? │?? │?? ├── RejectedPromise.php
│?? │?? │?? │?? ├── RejectionException.php
│?? │?? │?? │?? └── TaskQueue.php
│?? │?? │?? ├── Psr7
│?? │?? │?? │?? ├── AppendStream.php
│?? │?? │?? │?? ├── BufferStream.php
│?? │?? │?? │?? ├── CachingStream.php
│?? │?? │?? │?? ├── DroppingStream.php
│?? │?? │?? │?? ├── FnStream.php
│?? │?? │?? │?? ├── functions_include.php
│?? │?? │?? │?? ├── functions.php
│?? │?? │?? │?? ├── InflateStream.php
│?? │?? │?? │?? ├── LazyOpenStream.php
│?? │?? │?? │?? ├── LimitStream.php
│?? │?? │?? │?? ├── MessageTrait.php
│?? │?? │?? │?? ├── MultipartStream.php
│?? │?? │?? │?? ├── NoSeekStream.php
│?? │?? │?? │?? ├── PumpStream.php
│?? │?? │?? │?? ├── Request.php
│?? │?? │?? │?? ├── Response.php
│?? │?? │?? │?? ├── StreamDecoratorTrait.php
│?? │?? │?? │?? ├── Stream.php
│?? │?? │?? │?? ├── StreamWrapper.php
│?? │?? │?? │?? └── Uri.php
│?? │?? │?? ├── RedirectMiddleware.php
│?? │?? │?? ├── RequestOptions.php
│?? │?? │?? ├── RetryMiddleware.php
│?? │?? │?? ├── TransferStats.php
│?? │?? │?? └── UriTemplate.php
│?? │?? ├── mns-autoloader.php
│?? │?? ├── Psr
│?? │?? │?? └── Http
│?? │?? │?? └── Message
│?? │?? │?? ├── MessageInterface.php
│?? │?? │?? ├── RequestInterface.php
│?? │?? │?? ├── ResponseInterface.php
│?? │?? │?? ├── ServerRequestInterface.php
│?? │?? │?? ├── StreamInterface.php
│?? │?? │?? ├── UploadedFileInterface.php
│?? │?? │?? └── UriInterface.php
│?? │?? ├── README.md
│?? │?? ├── Samples
│?? │?? │?? ├── Queue
│?? │?? │?? │?? └── CreateQueueAndSendMessage.php
│?? │?? │?? └── Topic
│?? │?? │?? ├── CreateTopicAndPublishMessage.php
│?? │?? │?? └── http_server_sample.php
│?? │?? └── Tests
│?? │?? ├── aliyun-mns.ini
│?? │?? ├── ClientTest.php
│?? │?? ├── QueueTest.php
│?? │?? └── TopicTest.php
│?? ├── Protocols
│?? │?? └── JDCCProtocol.php
│?? ├── start_businessworker.php
│?? ├── start_gateway.php
│?? └── start_register.php
├── composer.json
├── start.php
└── vendor
├── autoload.php
├── composer
│?? ├── autoload_classmap.php
│?? ├── autoload_namespaces.php
│?? ├── autoload_psr4.php
│?? ├── autoload_real.php
│?? ├── autoload_static.php
│?? ├── ClassLoader.php
│?? ├── installed.json
│?? └── LICENSE
└── workerman
├── gateway-worker
│?? ├── composer.json
│?? ├── MIT-LICENSE.txt
│?? ├── README.md
│?? └── src
│?? ├── BusinessWorker.php
│?? ├── Gateway.php
│?? ├── Lib
│?? │?? ├── Context.php
│?? │?? ├── DbConnection.php
│?? │?? ├── Db.php
│?? │?? └── Gateway.php
│?? ├── Protocols
│?? │?? └── GatewayProtocol.php
│?? └── Register.php
├── workerman
│?? ├── Autoloader.php
│?? ├── composer.json
│?? ├── Connection
│?? │?? ├── AsyncTcpConnection.php
│?? │?? ├── ConnectionInterface.php
│?? │?? ├── TcpConnection.php
│?? │?? └── UdpConnection.php
│?? ├── Events
│?? │?? ├── EventInterface.php
│?? │?? ├── Event.php
│?? │?? ├── Ev.php
│?? │?? ├── Libevent.php
│?? │?? ├── React
│?? │?? │?? ├── ExtEventLoop.php
│?? │?? │?? ├── LibEventLoop.php
│?? │?? │?? └── StreamSelectLoop.php
│?? │?? └── Select.php
│?? ├── Lib
│?? │?? ├── Constants.php
│?? │?? └── Timer.php
│?? ├── MIT-LICENSE.txt
│?? ├── Protocols
│?? │?? ├── Frame.php
│?? │?? ├── Http
│?? │?? │?? └── mime.types
│?? │?? ├── Http.php
│?? │?? ├── ProtocolInterface.php
│?? │?? ├── Text.php
│?? │?? ├── Websocket.php
│?? │?? └── Ws.php
│?? ├── README.md
│?? ├── WebServer.php
│?? └── Worker.php
└── workerman.log
41 directories, 239 files