swoft v2.0.3 Release Notes

Release Date: 2019-07-08 // almost 3 years ago
  • ✂ Remove

    • ✂ Remove request->json() method(c9e8f04)

    ✨ Enhancement

    • ➕ Add interface dependency injection(6169f84)
    • ➕ Add getFile to obtain information after file upload and save(fe7e3a6)
    • ➕ Add restart() to restart service(2ffec37)
    • ➕ Add call 1.x RPC service support(30d73c3)
    • ➕ Add AOP class name matching supports regular expressions(bc5e479)
    • ➕ Add RPC Server /Http server Middleware namespace use error prompt(b1cec04)
    • ➕ Add validator exclusion attribute field withunfields(b1bf44f)
    • ➕ Add auto write timestamp(dc58011)
    • ➕ Add model action event(dc58011)
    • ➕ Add database migration script(26bb464)
    • ➕ Add entity automatically interact with json and arrays(dc58011)
    • ➕ Add model batch update method withbatchUpdateByIds(dc58011)

    🛠 Fixed:

    • 🛠 Fix cookies some problems when setting up, add some related methods with withCookie(b05afbb01)
    • 🛠 Fix no capture processing error when the console uses the coroutine mode to run the command.(8a5418bf)
    • 🛠 Fix restart websocket server command does not stop the old server problem first(db2d935)
    • 🛠 Fix task return value is null(a69347c)
    • 🛠 Fix RPC Server only class middleware can't be used(204bc7f)
    • 🛠 Fix RPC Server return value is null(4d091be)
    • 🛠 Fix Logger and CLog log level cannot be overwritten and invalid(8eb8aba)
    • 🛠 Fix attributes in the model do not support custom expressions(dc58011)

    ⚡️ Update:

    • 👍 Validator optimization, support for custom validation rules(d959a4f)
    • 📇 Rename the error handling management class ErrorHanlders to ErrorManager (f3a8f04b)
    • 💅 The exception handling of the console component is changed to the unified processing style provided by the error component. (4f47204)
    • Console component allows to set the disable command group(c5a0269)
    • In the default error handling, the error capture level is allowed to be set. The default level is E_ALL | E_STRICT (afff9029)
    • Optimization When the ws server is started, the http processing function is enabled at the same time, and the information panel adds prompts.(83a81170)
    • ⚡️ Optimize Start the ws server and add the rpc server to start. The information panel does not display the rpc server information.(3d1d0d848)


    • 🆕 New apollo Component
    • 🆕 New consul Component
    • 🆕 New breaker Component
    • 🆕 New limter component