Skip to content

Releases: pointybeard-archives/shell

2.0.2

14 Oct 11:32
Compare
Choose a tag to compare

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

03 Jul 02:43
Compare
Choose a tag to compare

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

2.0.1

07 Oct 00:59
Compare
Choose a tag to compare

Added

  • Allowing the user to overload DOCROOT at run-time with SYMPHONY_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

05 Jun 06:41
Compare
Choose a tag to compare
  • Refactoring of the Autoloader
  • Updated to work with 1.0.3 of ShellArgs