https://github.com/indragunawan/middleware-bundle
Before and After filter implementation by using annotation
https://github.com/indragunawan/middleware-bundle
event-dispatcher middleware php symfony symfony-bundle
Last synced: about 5 hours ago
JSON representation
Before and After filter implementation by using annotation
- Host: GitHub
- URL: https://github.com/indragunawan/middleware-bundle
- Owner: IndraGunawan
- License: mit
- Created: 2018-11-16T18:05:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T20:22:57.000Z (over 6 years ago)
- Last Synced: 2025-04-08T05:47:39.999Z (3 months ago)
- Topics: event-dispatcher, middleware, php, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MiddlewareBundle
[](https://github.com/IndraGunawan/middleware-bundle/blob/master/LICENSE.md)
[](https://travis-ci.org/IndraGunawan/middleware-bundle)
[](https://scrutinizer-ci.com/g/IndraGunawan/middleware-bundle/?branch=master)
[](https://scrutinizer-ci.com/g/IndraGunawan/middleware-bundle/?branch=master)
[](https://github.com/IndraGunawan/middleware-bundle)
[](https://packagist.org/packages/indragunawan/middleware-bundle)Middleware bundle provide simple implementation of [symfony before and after filter](https://symfony.com/doc/current/event_dispatcher/before_after_filters.html) by using annotation. this implementation is inspired by Laravel Middleware.
## Installation
If your project already uses Symfony Flex, execute this command to
download, register and configure the bundle automatically:```bash
composer require indragunawan/middleware-bundle
```If you install without using Symfony Flex, first add the bundle by using composer then enable the bundle by adding `new Indragunawan\MiddlewareBundle\IndragunawanMiddlewareBundle()` to the list of registered bundles in the app/AppKernel.php file of your project.
## Create middleware service
```php