Skip to content

0.11

Latest
Compare
Choose a tag to compare
@rosasurfer rosasurfer released this 01 Aug 22:10
· 1 commit to master since this release
  • BC breaking changes
    • MiniStruts now requires PHP 7.4+
    • renamed library namespace rosasurfer =>rosasurfer\ministruts
    • simplified error handling (only 3 error handling modes)
    • other namespaces changes
      • rosasurfer\ministruts =>rosasurfer\ministruts\struts
      • rosasurfer\ministruts\core\debug => rosasurfer\ministruts\core\error
      • rosasurfer\ministruts\di =>rosasurfer\ministruts\core\di
    • classes, methods and functions
      • removed class DebugHelper (use ErrorHandler instead)
      • renamed IllegalTypeException to InvalidTypeException
      • renamed InvalidArgumentException to InvalidValueException
      • removed IllegalArgumentException (use InvalidValueException instead)
      • renamed PHPError::getSimpleType() to ::getErrorType()
      • renamed RosasurferExceptionInterface::addMessage() to ::appendMessage()
      • method Request::getInput() replaces Request::getParameter() and Request::getParameters()
      • method Request::get() replaces Request::getGetParameter() and Request::getGetParameters()
      • method Request::post() replaces Request::getPostParameter() and Request::getPostParameters()
      • removed property ActionMapping::$formScope and corresponding getters/setters
      • moved rosasurfer\ministruts\net\PHPMailer to namespace rosasurfer\ministruts\util
      • removed deprecated/remaining Mailer classes (use external library instead)
      • removed log appender SMSHandler
      • removed class NetTools
      • removed class TorHelper (use external library instead)
      • removed class Validator (use PHP filters instead)
      • renamed helper function echoPre() to echof()
      • renamed helper function is_datetime() to strToTimestamp()
      • renamed helper function ksort_r() to ksortc()
      • renamed helper function printPretty() to print_p()
    • Struts
      • removed Struts config XML attribute mapping[@form-scope]
  • Logger
    • support for separately configurable log appenders
    • support for content filters to keep sensitive data out of the logs
  • Facades
    • Input facade to access the current or previous request's raw input parameters separately
    • Inputs facade to access the current and previous request's raw input parameters together
    • Form facade to access the current or previous request's interpreted input parameters separately
    • Forms facade to access the current and previous request's interpreted input parameters together
  • Struts
    • new class ActionInput representing the request's raw user input
    • new method Request::input() to access all raw input
    • new method Request::get() to access raw GET input
    • new method Request::post() to access raw POST input
    • new method ActionForm::get() to access interpreted user input (form properties)
    • ActionForm implements \ArrayAccess
  • Helper functions
    • getHostByAddress() replaces the removed NetTools::getHostByAddress()
  • Other
    • removed Application option app.globals and inclusion of src/globals.php
    • added method RosasurferExceptionInterface::prependMessage()
    • removed the case-insensitive internal class loader
    • fatal errors at script shutdown are detected and handled (e.g. out-of-memory errors)
    • errors E_DEPRECATED | E_USER_DEPRECATED | E_USER_NOTICE | E_USER_WARNING are not converted to exceptions