Code Monkey home page Code Monkey logo

php-support's Introduction

php-support's People

Contributors

mouyong avatar

Stargazers

 avatar  avatar

Watchers

royee avatar  avatar

Forkers

dheia

php-support's Issues

使用setResponseCodeKey这个方法的问题

我想修改默认的err_code err_msg这样的key,我看你内置了几个,我想改成code和message这样的key,但我应该在哪里使用setResponseCodeKey方法来全局改掉?

Class "Symfony\Component\HttpFoundation\Response" not found

大佬 这个报错不应该啊 我都是按照文档上的步骤操作的
Error: Class "Symfony\Component\HttpFoundation\Response" not found in /vagrant/php7433/webman/vendor/zhenmu/support/src/Traits/WebmanResponseTrait.php:152
Stack trace:
#0 /vagrant/php7433/webman/app/controller/indexController.php(12): app\controller\WebmanBaseController->success()
#1 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/App.php(319): app\controller\IndexController->index()
#2 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/App.php(168): Webman\App::Webman{closure}()
#3 /vagrant/php7433/webman/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage()
#4 [internal function]: Workerman\Connection\TcpConnection->baseRead()
#5 /vagrant/php7433/webman/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()
#6 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1635): Workerman\Events\Event->loop()
#7 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1426): Workerman\Worker::forkOneWorkerForLinux()
#8 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1400): Workerman\Worker::forkWorkersForLinux()
#9 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1785): Workerman\Worker::forkWorkers()
#10 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1721): Workerman\Worker::monitorWorkersForLinux()
#11 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#12 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()
#13 /vagrant/php7433/webman/start.php(4): support\App::run()
#14 {main} [] []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.