Skip to content

Commit 822fcca

Browse files
authored
Update filters.md (#1869)
```php abstract class AbstractFilter implements FilterInterface : public function __construct(protected ManagerRegistry $managerRegistry, LoggerInterface $logger = null, protected ?array $properties = null, protected ?NameConverterInterface $nameConverter = null) { $this->logger = $logger ?? new NullLogger(); } ``` The tild should not be in second position, it should be the log as shown in the AbstractFilter constructor
1 parent e6ca334 commit 822fcca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ services:
13311331
# This whole definition can be omitted if automatic service loading is enabled
13321332
'App\Filter\RegexpFilter':
13331333
# The "arguments" key can be omitted if the autowiring is enabled
1334-
arguments: [ '@doctrine', ~, '@?logger' ]
1334+
arguments: [ '@doctrine', '@?logger' ]
13351335
# The "tags" key can be omitted if the autoconfiguration is enabled
13361336
tags: [ 'api_platform.filter' ]
13371337
```
@@ -1343,7 +1343,7 @@ it can also be enabled for some properties:
13431343
# api/config/services.yaml
13441344
services:
13451345
'App\Filter\RegexpFilter':
1346-
arguments: [ '@doctrine', ~, '@?logger', { email: ~, anOtherProperty: ~ } ]
1346+
arguments: [ '@doctrine', '@?logger', { email: ~, anOtherProperty: ~ } ]
13471347
tags: [ 'api_platform.filter' ]
13481348
```
13491349

0 commit comments

Comments
 (0)