Releases: pointybeard-archives/shell
Releases · pointybeard-archives/shell
2.0.2
Added
- Added check to ensure Shell extension is enabled before proceeding. Throws
ShellException
if it isn't enabled (Fixes #4). - Added
__toString()
method and moved some code from display().
Changed
- Removed the login() method since original limitation introduced by
Symphony::login()
is gone. - Simplified authentication prompt message.
- Ran
php-cs-fixer
over code base to ensure PSR2 compliant formatting.
2.0.0
Added
- The hasRequiresAuthenticationTrait trait will now prompt for username and password if none was provided.
- Added more background colours to Message class
- Added 'token' command. Allows enabling, disabling and retrieval of author tokens
- Added
Shell::error()
andShell::warning()
convenience methods - Added
fetch()
method to the command autoloader. Simplifies getting a list of all available commands in the system. - Removed need for 'extension' or 'e' flag.
- Calling commands authenticate method if it extends
AuthenticatedCommand
. - Using Message class to display errors.
- Removed
listCommands()
method - Added additional call to
restore_error_handler
. In version of Symphony prior to 2.7, the Exception and Error handlers are set twice. - Added exception handling around constructor to avoid problems with sessions already being started (not relevant to shell)
- Added
AuthenticatedCommand
class and 'hasRequiresAuthenticationTrait.php' trait to simplify the process of requiring authentication for a command. - added new exception
AuthenticationRequiredException
which supports these new classes.
Changed
- Renamed 'test' command to 'hello'. No longer requires authentication
- Using
Shell::error()
when trapping a ShellException Message::background()
andMessage::foreground()
now supportNULL
.- Updated example command to use
AuthenticatedCommand
andhasRequiresAuthenticationTrait
- Move
ShellException
intoExceptions/
folder. - Moved
Lib/
intosrc/
. - Updated autoloader to look in
workspace/bin/
folder (#3) - Updated
symphony
command to support loading a command from workspace/bin/ (#3) - Using PSR4 autoloader instead of classmap
Fixed
- Fixed extra new line appearing when requiring input.
- Fixed workspace command autoloader code. Was incorrectly adding .php to the end of everything
2.0.1
Added
- Allowing the user to overload
DOCROOT
at run-time withSYMPHONY_DOCROOT
environment variable (Closes #6).
Changes
- Added checks to make sure composer autoloader exists and display a nice message if it cannot be located (Closes #5)
- Updated
Utils::promptForInput()
to allow setting of the prompt character. The default is still colon (:)
v1.0.2
- Refactoring of the Autoloader
- Updated to work with 1.0.3 of ShellArgs