v0.9.0
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/containerandpsr/http-messageare already included in this release - Install
http-interop/http-middlewareif you want to use middlewares inMiddlewaredirectory
- Packages
- Middlewares in
FastRoute\DispatcherandPhroute\Dispatcher Integrationfor integrating third-party packages to SlytherinConfigurationfor ease of access in getting configurations inside integrations- Integrations for existing directories (e.g
Http\HttpIntegration,Debug\ErrorHandlerIntegration) Routing\Router::prefixfor adding prefix in succeeding route endpointsRouting\Router::restfulfor adding RESTful routes based on one base routeRouting\DispatcherInterface::routerfor setting up routers manuallyApplication::containerfor getting the static instance of PSR-11 containerContainer\ReflectionContainerfor using PHP's Reflection API for solving class dependencies- Resolving of type hinted parameters in functions or class methods
Application\CallbackHandlerandApplication\FinalCallbackfor building a callback for the application
Changed
- Minimum required PHP version to
v5.3.0 Dispatchingdirectory toRoutingIoCdirectory toContainerDebug\DebuggertoDebug\ErrorHandlerMiddleware\MiddlewareInterfacetoMiddleware\DispatcherInterface- Emit headers on
Application::runonly - Allow anonymous functions and objects in adding middleware from a specified route in
Middleware\Stratigility
Deprecated
Application\ApplicationclassComponentdirectoryDebug\DebuggerclassDebuggerrelated classesDispatchingdirectoryErrorHandlerdirectoryIoCdirectoryMiddleware\MiddlewareInterfaceinterfaceMiddleware\Stratigility\MiddlewareclassTemplate\Twig\RendererclassVanillarelated classes
Fixed
- Appending of middleware response from
DispatcherInterface's result inApplication::run Array to string conversionerror when add callback routes with arguments- Compatibility issue for
Statigility\Middleware - Getting
$requestobject in container after being defined inApplication::handle
Removed
- HTTP method spoofing (apply it on a middleware instead)
- Traits (in order to achieve PHP
v5.3.0as the minimum required version) getEnvironmentandsetEnvironmentinDebug\ErrorHandlerInterface