8000 minor #18064 Mentioned the deprecation of deep parameters in UPGRADE … · symfony/symfony@e65eac6 · GitHub
[go: up one dir, main page]

Skip to content

Commit e65eac6

Browse files
committed
minor #18064 Mentioned the deprecation of deep parameters in UPGRADE files (javiereguiluz)
This PR was squashed before being merged into the 2.8 branch (closes #18064). Discussion ---------- Mentioned the deprecation of deep parameters in UPGRADE files | Q | A | ------------- | --- | Branch | 2.8+ | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18058 | License | MIT | Doc PR | - Commits ------- 6ea28e6 Mentioned the deprecation of deep parameters in UPGRADE files
2 parents fe6d904 + 6ea28e6 commit e65eac6

File tree

2 files changed

+42
-7
lines changed

2 files changed

+42
-7
lines changed

UPGRADE-2.8.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,20 +514,20 @@ FrameworkBundle
514514
515515
* The `validator.mapping.cache.apc` service is deprecated, and will be removed in 3.0.
516516
Use `validator.mapping.cache.doctrine.apc` instead.
517-
518-
* The ability to pass `apc` as the `framework.validation.cache` configuration key value is deprecated,
517+
518+
* The ability to pass `apc` as the `framework.validation.cache` configuration key value is deprecated,
519519
and will be removed in 3.0. Use `validator.mapping.cache.doctrine.apc` instead:
520-
520+
521521
Before:
522-
522+
523523
```yaml
524524
framework:
525525
validation:
526526
cache: apc
527527
```
528528

529529
After:
530-
530+
531531
```yaml
532532
framework:
533533
validation:
@@ -612,3 +612,21 @@ Yaml
612612
```yml
613613
class: "Foo\\Var"
614614
```
615+
616+
HttpFoundation
617+
--------------
618+
619+
* Deprecated finding deep items in `ParameterBag::get()`. This may affect you
620+
when getting parameters from the `Request` class:
621+
622+
Before:
623+
624+
```php
625+
$request->query->get('foo[bar]', null, true);
626+
```
627+
628+
After:
629+
630+
```php
631+
$request->query->get('foo')[bar];
632+
```

UPGRADE-3.0.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ UPGRADE FROM 2.x to 3.0
745745
The `security.csrf.token_manager` should be used instead.
746746

747747
* The `validator.mapping.cache.apc` service has been removed in favor of the `validator.mapping.cache.doctrine.apc` one.
748-
748+
749749
* The ability to pass `apc` as the `framework.validation.cache` configuration key value has been removed.
750750
Use `validator.mapping.cache.doctrine.apc` instead:
751751

@@ -1022,7 +1022,7 @@ UPGRADE FROM 2.x to 3.0
10221022

10231023
```php
10241024
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
1025-
1025+
10261026
class MyVoter extends Voter
10271027
{
10281028
protected function supports($attribute, $object)
@@ -1624,3 +1624,20 @@ UPGRADE FROM 2.x to 3.0
16241624
* `Process::setStdin()` and `Process::getStdin()` have been removed. Use
16251625
`Process::setInput()` and `Process::getInput()` that works the same way.
16261626
* `Process::setInput()` and `ProcessBuilder::setInput()` do not accept non-scalar types.
1627+
1628+
### HttpFoundation
1629+
1630+
* Removed the feature that allowed finding deep items in `ParameterBag::get()`.
1631+
This may affect you when getting parameters from the `Request` class:
1632+
1633+
Before:
1634+
1635+
```php
1636+
$request->query->get('foo[bar]', null, true);
1637+
```
1638+
1639+
After:
1640+
1641+
```php
1642+
$request->query->get('foo')[bar];
1643+
```

0 commit comments

Comments
 (0)
0