| Package Data | |
|---|---|
| Maintainer Username: | winglian |
| Maintainer Contact: | wing.lian@gmail.com (Wing Lian) |
| Package Create Date: | 2015-02-19 |
| Package Last Update: | 2015-02-19 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-07 03:00:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 23 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Easily resuse your Laravel 4 and Symfony middlewares in Laravel.
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);
}
}