Skip to content

Commit

Permalink
remove unused imports, add more description in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkiansky committed Dec 13, 2023
1 parent acce9a8 commit 6541ade
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,24 @@ final class SomeController
}
```

Also, you can use nested groups:

```yaml
symiddleware:
global:
- App\Controller\SetCorsHeaders
- web
groups:
web:
middlewares:
- 'App\Middleware\ModifyRequestMiddleware'
- debug
debug:
if: false
middlewares:
- 'App\Middleware\LogSqlQuery'
```

Duplicated middlewares will be removed.

## Customization
Expand Down
1 change: 0 additions & 1 deletion src/DependencyInjection/SymiddlewareCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Psr\Http\Server\MiddlewareInterface;
use Kafkiansky\SymfonyMiddleware\Middleware\Registry\MiddlewareRegistry;
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service_locator;

Expand Down

0 comments on commit 6541ade

Please sign in to comment.