Releases: rosasurfer/ministruts
Releases · rosasurfer/ministruts
0.11
- 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
(useErrorHandler
instead) - renamed
IllegalTypeException
toInvalidTypeException
- renamed
InvalidArgumentException
toInvalidValueException
- removed
IllegalArgumentException
(useInvalidValueException
instead) - renamed
PHPError::getSimpleType()
to::getErrorType()
- renamed
RosasurferExceptionInterface::addMessage()
to::appendMessage()
- method
Request::getInput()
replacesRequest::getParameter()
andRequest::getParameters()
- method
Request::get()
replacesRequest::getGetParameter()
andRequest::getGetParameters()
- method
Request::post()
replacesRequest::getPostParameter()
andRequest::getPostParameters()
- removed property
ActionMapping::$formScope
and corresponding getters/setters - moved
rosasurfer\ministruts\net\PHPMailer
to namespacerosasurfer\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()
toechof()
- renamed helper function
is_datetime()
tostrToTimestamp()
- renamed helper function
ksort_r()
toksortc()
- renamed helper function
printPretty()
toprint_p()
- removed class
- Struts
- removed Struts config XML attribute
mapping[@form-scope]
- removed Struts config XML attribute
- 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
- new class
- Helper functions
getHostByAddress()
replaces the removedNetTools::getHostByAddress()
- Other
- removed
Application
optionapp.globals
and inclusion ofsrc/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
- removed
0.10.4
maintenance release
0.9.4
final maintenance release version 0.9
0.8.6
final maintenance release version 0.8
0.10.3
maintenance release
0.10.2
maintenance release
0.9.3
backported fixes from version 0.10
0.8.5
backported fixes from version 0.10
0.9.2
backported fixes from version 0.10
0.8.4
backported fixes from version 0.10