Skip to content

2.16.0

Latest

Choose a tag to compare

@Amaury Amaury released this 18 Mar 21:42
· 5 commits to main since this release

New datasource

New features

  • Autoload: improve management of declared include paths.
  • Loader (dependency injection)
  • DataFilter
    • Add types: Binary, Base64, hash
    • JSON: add contract parameter.
    • URL: add extra parameters.
    • Add output parameter.
    • mime parameter is now optional for binary type.
    • Add minLen/maxLen parameters to list, json, base64 types.
    • minLen/maxLen parameters supports K/M/G/T/P/E suffix.
    • Assume assoc contract when array contracts without type defined.
    • Add charset parameter for string and binary.
    • Add value parameter to list validation.
    • Support wildcard keys and subcontracts to validate extra keys in assoc.
  • Request:
    • Add validateParams(), validatePayload() and validateFiles() methods.
    • Add payload management (validation and getters).
  • Session: Enforce secure cookie parameters (Lax/HttpOnly) for native PHP sessions fallback.
  • Command-line interface: register data sources directly in the loader.
  • Check attributes: add Check\Payload, Check\Params, Check\Get, Check\Post, Check\Files and CheckOutput.
  • Text: add mimeTypesMatch() and parseSize().
  • View attribute: add adaptative view option.
  • Controllers: Debug loading default controller's template.
  • SQL datasource: Add request parameters in exec(), queryOne() and queryAll() methods.
  • Improve redirection management in Response, Controller and attributes.