Skip to content

v0.9.0

Choose a tag to compare

@rougin rougin released this 08 Jul 11:48
· 328 commits to master since this release

NOTE: This release may break your application if upgrading from v0.8.0 release.

Added

  • Implementation of PSR-7, PSR-11, and PSR-15 standards.
    • Packages psr/container and psr/http-message are already included in this release
    • Install http-interop/http-middleware if you want to use middlewares in Middleware directory
  • Middlewares in FastRoute\Dispatcher and Phroute\Dispatcher
  • Integration for integrating third-party packages to Slytherin
  • Configuration for ease of access in getting configurations inside integrations
  • Integrations for existing directories (e.g Http\HttpIntegration, Debug\ErrorHandlerIntegration)
  • Routing\Router::prefix for adding prefix in succeeding route endpoints
  • Routing\Router::restful for adding RESTful routes based on one base route
  • Routing\DispatcherInterface::router for setting up routers manually
  • Application::container for getting the static instance of PSR-11 container
  • Container\ReflectionContainer for using PHP's Reflection API for solving class dependencies
  • Resolving of type hinted parameters in functions or class methods
  • Application\CallbackHandler and Application\FinalCallback for building a callback for the application

Changed

  • Minimum required PHP version to v5.3.0
  • Dispatching directory to Routing
  • IoC directory to Container
  • Debug\Debugger to Debug\ErrorHandler
  • Middleware\MiddlewareInterface to Middleware\DispatcherInterface
  • Emit headers on Application::run only
  • Allow anonymous functions and objects in adding middleware from a specified route in Middleware\Stratigility

Deprecated

  • Application\Application class
  • Component directory
  • Debug\Debugger class
  • Debugger related classes
  • Dispatching directory
  • ErrorHandler directory
  • IoC directory
  • Middleware\MiddlewareInterface interface
  • Middleware\Stratigility\Middleware class
  • Template\Twig\Renderer class
  • Vanilla related classes

Fixed

  • Appending of middleware response from DispatcherInterface's result in Application::run
  • Array to string conversion error when add callback routes with arguments
  • Compatibility issue for Statigility\Middleware
  • Getting $request object in container after being defined in Application::handle

Removed

  • HTTP method spoofing (apply it on a middleware instead)
  • Traits (in order to achieve PHP v5.3.0 as the minimum required version)
  • getEnvironment and setEnvironment in Debug\ErrorHandlerInterface