Skip to content

v0.9.7

Compare
Choose a tag to compare
@rougin rougin released this 12 Jan 11:03
· 12 commits to master since this release

Added

  • preferred property in integrations
  • ContainerException in Container
  • RouteInterface for handling specific routes
  • Support for all versions of http-interop/http-middleware (0.3, 0.4, 0.5)
  • Support version for PHP v8.3
  • Routing for creating HTTP routes directly in Application

Changed

  • Third-party packages in Routing extends to Slytherin's Dispatcher, Router
  • Conformed all application logic to RouteInterface
  • UnexpectedValueException to BadMethodCallException in DispatcherInterface
  • Conformed Middleware to the official PSR-15 package (psr/http-server-middleware)
  • Application class to System
  • Improvement to unit tests (renamed to snake_case, improved logic)

Fixed

  • Type hinting of all classes using PHPStan (up to level 9)
  • Forward slash (\\) not required if setting $namespace in Router
  • Checking of available instances in Container::value
  • If ServerRequestInterface is an argument with a middleware
  • Backward compatibility for LeagueContainer::set (as of ~3.0)
  • Backward compatibility for TwigRenderer::render (as of ~3.0)
  • Backward compatibility for StratigilityDispatcher::process (until ~3.0)
  • Resolving type hinted routes for third-party routing dispatchers

Removed

  • Integration\ConfigurationInterface as its not being used
  • Resolver inside Container (will now not provide autowiring by default)