Skip to content

v5.0.0

Compare
Choose a tag to compare
@miladrahimi miladrahimi released this 30 Jan 18:44
· 40 commits to master since this release
f8c06d7

New major version!
The whole package is rewritten with clean code and OOP and simplicity in mind.
Everything is ready for new features!
Change log:

  • Integrated with a to handle the package dependencies and your application ones
  • Middleware and controller parameters will be resolved from the IoC container.
  • You can bind any dependency and resolve it by controller a parameter
  • Controller constructors now can get dependencies including current request, route, etc.
  • Index routes by method to find the appropriate route faster
  • The 'Controller@method' syntax changed to [Controller::class, 'method']
  • The new controller syntax applied to Middelware as well
  • Url class added to generate URLs from a route name and parameters (you can get an instance by a controller parameter)
  • Route class added to get all the current route attributes (you can get an instance by a controller parameter)
  • Chained method feature removed.
  • Functions (Not closures) could not be controller anymore.
  • Namespace prefix removed (not necessary because of the new syntax)
  • Namespace and domain parameters removed from route definition (available only in group attributes)
  • PSR-7 request and response upgraded from Zend to Laminas