Skip to content

Commit 50d4ea2

Browse files
committed
Fix ignored_namespaces configuration and revert FooExtractor filepath
- Use regex pattern format for ignored_namespaces: '/^Acme\\\\/' - Revert FooExtractor filepath back to src/Acme/DemoBundle/Translation/FooExtractor.php since Acme namespace is now properly ignored
1 parent 3cb4435 commit 50d4ea2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.doctor-rst.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ rules:
2525
namespace_mapping:
2626
'src/': 'App\'
2727
'tests/': 'App\Tests\'
28-
ignore_namespaces:
29-
- 'Acme\'
28+
ignored_namespaces:
29+
- '/^Acme\\\\/'
3030
ignored_paths:
3131
- '/^config\//'
3232
- '/^example\.com\//'

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ You can create your own extractor by creating a class that implements
11011101
and tagging the service with ``translation.extractor``. The tag has one
11021102
required option: ``alias``, which defines the name of the extractor::
11031103

1104-
// src/DemoBundle/Translation/FooExtractor.php
1104+
// src/Acme/DemoBundle/Translation/FooExtractor.php
11051105
namespace Acme\DemoBundle\Translation;
11061106

11071107
use Symfony\Component\Translation\Extractor\ExtractorInterface;

0 commit comments

Comments
 (0)