Skip to content

Commit d25519f

Browse files
committed
Merge branch 'master' into 5.x
# Conflicts: # docs/configuration_reference.rst # src/DependencyInjection/Configuration.php # src/DependencyInjection/NelmioApiDocExtension.php # src/Routing/FilteredRouteCollectionBuilder.php # tests/DependencyInjection/ConfigurationTest.php # tests/Routing/FilteredRouteCollectionBuilderTest.php
2 parents 2018907 + 3aaa734 commit d25519f

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
lines changed

.doctor-rst.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ rules:
5353

5454
# master
5555
versionadded_directive_major_version:
56-
major_version: 7
56+
major_version: 4
5757

5858
versionadded_directive_min_version:
59-
min_version: '7.0'
59+
min_version: '4.0'
6060

6161
deprecated_directive_major_version:
62-
major_version: 6
62+
major_version: 4
6363

6464
deprecated_directive_min_version:
65-
min_version: '6.0'
65+
min_version: '4.0'
6666

6767
# do not report as violation
6868
whitelist:

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# CHANGELOG
22

3+
## 4.36.0
4+
* Configuration option `with_annotation` has been deprecated in favor of `with_attribute`
5+
```diff
6+
nelmio_api_doc:
7+
areas:
8+
path_patterns:
9+
- ^/api/foo
10+
- with_annotation: true
11+
+ with_attribute: true
12+
```
13+
314
## 4.35.0
415
* Added support for the symfony/type-info component
516
```yaml

config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163

164164
<!-- Type describers (symfony/type-info) -->
165165
<service id="nelmio_api_doc.type_describer.chain" class="Nelmio\ApiDocBundle\TypeDescriber\ChainDescriber" public="false">
166-
<argument type="tagged" tag="nelmio_api_doc.type_describer" />
166+
<argument type="tagged_iterator" tag="nelmio_api_doc.type_describer" />
167167

168168
<tag name="nelmio_api_doc.type_describer" priority="1000" />
169169
</service>

docs/configuration_reference.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The bundle configuration is stored under the ``nelmio_api_doc`` key in your appl
5454
# Example:
5555
# - ^api_v1
5656
# whether to filter by attributes
57-
with_attribute: false
57+
with_attribute: false
5858
# if set disables default routes without attributes
5959
disable_default_routes: false
6060
# The base documentation used for the area
@@ -94,6 +94,10 @@ Whether to use `symfony/type-info`_ for determining types.
9494

9595
If you are using Symfony 7.2 or higher, you should set this option to ``true``. As this greatly improves type detection.
9696

97+
.. versionadded:: 4.35
98+
99+
Support for `symfony/type-info`_ was added in 4.35.
100+
97101
use_validation_groups
98102
~~~~~~~~~~~~~~~~~~~~~
99103

@@ -193,7 +197,7 @@ Filter the routes that are documented.
193197
name_patterns:
194198
# Example:
195199
# - ^api_v1
196-
with_attribute: false
200+
with_attribute: false
197201
disable_default_routes: false
198202
documentation:
199203
# Example:

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Q: I have a property that is not recognized. How can I specify the type?
250250
type_info: true
251251
# ...
252252
253-
.. versionadded:: 7.2
253+
.. versionadded:: 4.35
254254

255255
The `TypeInfo component`_ was introduced as a stable feature in Symfony 7.2.
256256

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ General PHP objects
413413
type_info: true
414414
# ...
415415
416-
.. versionadded:: 7.2
416+
.. versionadded:: 4.35
417417

418418
The `TypeInfo component`_ was introduced as a stable feature in Symfony 7.2.
419419

0 commit comments

Comments
 (0)