Skip to content

2.0.0

Choose a tag to compare

@pointybeard pointybeard released this 03 Jul 02:43
· 9 commits to master since this release

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() and Shell::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() and Message::foreground() now support NULL.
  • Updated example command to use AuthenticatedCommand and hasRequiresAuthenticationTrait
  • Move ShellException into Exceptions/ folder.
  • Moved Lib/ into src/.
  • 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