Yii Framework 34k+
  • News
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Places
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Extensions
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • Release Cycle
    • License
    • Team
    • Official Logos and Design
Login

Middleware dispatcher 2.0.0

Nov 10, 2021

New major release of middleware dispatcher package was tagged. While 1.0.0 was released only a few days ago, we had a great usability idea that, as usual, came right after 1.0.0 was done.

This release reverses middleware order. Previously it was expecting reverse order:

$dispatcher = $dispatcher->withMiddlewares([
    static function (): ResponseInterface {
        return new Response(418);
    },
    TeapotAccessChecker::class,
]);

Now it uses natural order that reads way better:

$dispatcher = $dispatcher->withMiddlewares([
    TeapotAccessChecker::class,
    static function (): ResponseInterface {
        return new Response(418);
    },    
]);

Middleware dispatcher 1.0.0

Nov 8, 2021

Stable release of middleware dispatcher package was tagged.

The package is a PSR-15 middleware dispatcher. Given a set of middleware and a request instance, dispatcher executes it is produces a response instance.

use Yiisoft\Middleware\Dispatcher\MiddlewareDispatcher;
use Yiisoft\Middleware\Dispatcher\MiddlewareFactory;

Read more

Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (47)
  • 2025 (92)
  • 2024 (80)
  • 2023 (90)
  • 2022 (82)
  • 2021 (101)
  • 2020 (64)
  • 2019 (75)
  • 2018 (32)
  • 2017 (35)
  • 2016 (30)
  • 2015 (9)
  • 2014 (6)
  • 2013 (11)
  • 2012 (14)
  • 2011 (10)
  • 2010 (10)
  • 2009 (23)
  • 2008 (5)

Popular Tags

  • yii3 386
  • extensions 233
  • release 109
  • yii2 74
  • debug 30
  • view 28
  • html 25
  • auth client 23
  • bootstrap 21
  • redis 20
  • Yii 1.1
  • Guide
  • API
  • Wiki
  • Yii 2
  • Guide
  • API
  • Wiki
  • Yii3
  • Guide
  • API
  • Cookbook
  • Terms of service
  • License
  • Contact Us
  • Supported by
  • Your donations
  • JetBrains logo
  • © 2008 - 2026 Yii (Website Source Code)