winglian / middleware-adapter
Adapter for HttpKernelInterface middlewares to be used with Laravel
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/winglian/middleware-adapter
Requires
- php: >=5.3.2
- illuminate/foundation: 5.0.*
- illuminate/http: 5.0.*
- symfony/http-foundation: 2.6.*
- symfony/http-kernel: 2.6.*
This package is not auto-updated.
Last update: 2025-10-11 22:04:18 UTC
README
Easily resuse your Laravel 4 and Symfony middlewares in Laravel.
How To Use
Also see the example HttpCacheMiddlewareAdapter in src
class YourMiddleware extends \Winglian\MiddlewareAdapter\AbstractMiddlewareAdapter { protected $adaptedClass = '\Namespace\Prefix\YourHttpKernelInterfaceMiddleware'; protected function getClassAdapterInstance(HttpKernelInterface $app) { /** * You can optionally change this logic if you need to resolve your adapter from the IoC * or pass in other options to the class. */ return parent::getClassAdapterInstance($app); } }