Parable PHP Framework 1.2.0
Parable PHP Framework Changelog
1.2.0
Changes
\Parable\Console\Options
has been upgraded thanks to @jerry1970, through PR #44:- Flag options (single-character, using a single dash) are now supported. Examples:
parable command -xyf
orparable command -x -y -f
. You can designate an option as a flag by passingtrue
as the fourth parameter when instantiating an Option or simiarly by callingaddOption()
on a command. - Flag options are only picked up when passed with a single dash
-
, whereas regular options only get picked up with a double dash--
. - Flag options by default don't require a value and are
null
if not passed andtrue
if passed. They can, however, take values like regular options.
- Flag options (single-character, using a single dash) are now supported. Examples:
\Parable\Console\Output
has been upgraded to support newlines in the differentwriteBlock()
methods. You can also directly pass them astring[]
, just like withwriteln()
.\Parable\Http\Response
has gainedenableHeaderAndFooterContent()
, so you can disable it for certain output (like Json) if you've otherwise set header/footer content globally.