-
Notifications
You must be signed in to change notification settings - Fork 9.6k
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,302 @@ | ||
UPGRADE FROM 4.2 to 4.3 | ||
======================= | ||
|
||
BrowserKit | ||
---------- | ||
|
||
* Renamed `Client` to `AbstractBrowser` | ||
* Marked `Response` final. | ||
* Deprecated `Response::buildHeader()` | ||
* Deprecated `Response::getStatus()`, use `Response::getStatusCode()` instead | ||
|
||
Cache | ||
----- | ||
|
||
* The `psr/simple-cache` dependency has been removed - run `composer require psr/simple-cache` if you need it. | ||
* Deprecated all PSR-16 adapters, use `Psr16Cache` or `Symfony\Contracts\Cache\CacheInterface` implementations instead. | ||
* Deprecated `SimpleCacheAdapter`, use `Psr16Adapter` instead. | ||
|
||
Config | ||
------ | ||
|
||
* Deprecated using environment variables with `cannotBeEmpty()` if the value is validated with `validate()` | ||
* Deprecated the `root()` method in `TreeBuilder`, pass the root node information to the constructor instead | ||
|
||
DependencyInjection | ||
------------------- | ||
|
||
* Deprecated support for non-string default env() parameters | ||
|
||
Before: | ||
```yaml | ||
parameters: | ||
env(NAME): 1.5 | ||
``` | ||
|
||
After: | ||
```yaml | ||
parameters: | ||
env(NAME): '1.5' | ||
``` | ||
|
||
Doctrine Bridge | ||
--------------- | ||
|
||
* Passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field has been deprecated, pass `null` instead | ||
* Not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field has been deprecated | ||
|
||
Dotenv | ||
------ | ||
|
||
* First parameter of `Dotenv::__construct()` will be changed from `true` to `false` in Symfony 5.0. A deprecation warning | ||
is triggered if no parameter is provided. Use `$usePutenv = true` to upgrade without breaking changes. | ||
|
||
EventDispatcher | ||
--------------- | ||
|
||
* The signature of the `EventDispatcherInterface::dispatch()` method should be updated to `dispatch($event, string $eventName = null)`, not doing so is deprecated | ||
* The `Event` class has been deprecated, use `Symfony\Contracts\EventDispatcher\Event` instead | ||
|
||
Form | ||
---- | ||
|
||
* Using the `format` option of `DateType` and `DateTimeType` when the `html5` option is enabled is deprecated. | ||
* Using names for buttons that do not start with a letter, a digit, or an underscore is deprecated and will lead to an | ||
exception in 5.0. | ||
* Using names for buttons that do not contain only letters, digits, underscores, hyphens, and colons is deprecated and | ||
will lead to an exception in 5.0. | ||
* Using the `date_format`, `date_widget`, and `time_widget` options of the `DateTimeType` when the `widget` option is | ||
set to `single_text` is deprecated. | ||
|
||
FrameworkBundle | ||
--------------- | ||
|
||
* Not passing the project directory to the constructor of the `AssetsInstallCommand` is deprecated. This argument will | ||
be mandatory in 5.0. | ||
* Deprecated the "Psr\SimpleCache\CacheInterface" / "cache.app.simple" service, use "Symfony\Contracts\Cache\CacheInterface" / "cache.app" instead. | ||
* The `generate()` method of the `UrlGenerator` class can return an empty string instead of null. | ||
|
||
HttpFoundation | ||
-------------- | ||
|
||
* The `MimeTypeGuesserInterface` and `ExtensionGuesserInterface` interfaces have been deprecated, | ||
use `Symfony\Component\Mime\MimeTypesInterface` instead. | ||
* The `MimeType` and `MimeTypeExtensionGuesser` classes have been deprecated, | ||
use `Symfony\Component\Mime\MimeTypes` instead. | ||
* The `FileBinaryMimeTypeGuesser` class has been deprecated, | ||
use `Symfony\Component\Mime\FileBinaryMimeTypeGuesser` instead. | ||
* The `FileinfoMimeTypeGuesser` class has been deprecated, | ||
use `Symfony\Component\Mime\FileinfoMimeTypeGuesser` instead. | ||
|
||
HttpKernel | ||
---------- | ||
|
||
* Renamed `Client` to `HttpKernelBrowser` | ||
* Renamed `FilterControllerArgumentsEvent` to `ControllerArgumentsEvent` | ||
* Renamed `FilterControllerEvent` to `ControllerEvent` | ||
* Renamed `FilterResponseEvent` to `ResponseEvent` | ||
* Renamed `GetResponseEvent` to `RequestEvent` | ||
* Renamed `GetResponseForControllerResultEvent` to `ViewEvent` | ||
* Renamed `GetResponseForExceptionEvent` to `ExceptionEvent` | ||
* Renamed `PostResponseEvent` to `TerminateEvent` | ||
* Deprecated `TranslatorListener` in favor of `LocaleAwareListener` | ||
|
||
Intl | ||
---- | ||
|
||
* Deprecated `ResourceBundle` namespace | ||
* Deprecated `Intl::getCurrencyBundle()`, use `Currencies` instead | ||
* Deprecated `Intl::getLanguageBundle()`, use `Languages` or `Scripts` instead | ||
* Deprecated `Intl::getLocaleBundle()`, use `Locales` instead | ||
* Deprecated `Intl::getRegionBundle()`, use `Regions` instead | ||
|
||
Messenger | ||
--------- | ||
|
||
* `Amqp` transport does not throw `\AMQPException` anymore, catch `TransportException` instead. | ||
* Deprecated the `LoggingMiddleware` class, pass a logger to `SendMessageMiddleware` instead. | ||
|
||
Routing | ||
------- | ||
|
||
* The `generator_base_class`, `generator_cache_class`, `matcher_base_class`, and `matcher_cache_class` router | ||
options have been deprecated. | ||
* Implementing `Serializable` for `Route` and `CompiledRoute` is deprecated; if you serialize them, please | ||
ensure your unserialization logic can recover from a failure related to an updated serialization format | ||
|
||
Security | ||
-------- | ||
|
||
* The `Role` and `SwitchUserRole` classes are deprecated and will be removed in 5.0. Use strings for roles | ||
instead. | ||
* The `getReachableRoles()` method of the `RoleHierarchyInterface` is deprecated and will be removed in 5.0. | ||
Role hierarchies must implement the `getReachableRoleNames()` method instead and return roles as strings. | ||
* The `getRoles()` method of the `TokenInterface` is deprecated. Tokens must implement the `getRoleNames()` | ||
method instead and return roles as strings. | ||
* The `ListenerInterface` is deprecated, turn your listeners into callables instead. | ||
* The `Firewall::handleRequest()` method is deprecated, use `Firewall::callListeners()` instead. | ||
* The `AbstractToken::serialize()`, `AbstractToken::unserialize()`, | ||
`AuthenticationException::serialize()` and `AuthenticationException::unserialize()` | ||
methods are now final, use `__serialize()` and `__unserialize()` instead. | ||
|
||
Before: | ||
```php | ||
public function serialize() | ||
{ | ||
return [$this->myLocalVar, parent::serialize()]; | ||
} | ||
|
||
public function unserialize($serialized) | ||
{ | ||
[$this->myLocalVar, $parentSerialized] = unserialize($serialized); | ||
parent::unserialize($parentSerialized); | ||
} | ||
``` | ||
|
||
After: | ||
```php | ||
public function __serialize(): array | ||
{ | ||
return [$this->myLocalVar, parent::__serialize()]; | ||
} | ||
|
||
public function __unserialize(array $data): void | ||
{ | ||
[$this->myLocalVar, $parentData] = $data; | ||
parent::__unserialize($parentData); | ||
} | ||
``` | ||
|
||
* The `Argon2iPasswordEncoder` class has been deprecated, use `SodiumPasswordEncoder` instead. | ||
* The `BCryptPasswordEncoder` class has been deprecated, use `NativePasswordEncoder` instead. | ||
* Not implementing the methods `__serialize` and `__unserialize` in classes implementing | ||
the `TokenInterface` is deprecated | ||
|
||
SecurityBundle | ||
-------------- | ||
|
||
* Configuring encoders using `argon2i` or `bcrypt` as algorithm has been deprecated, use `auto` instead. | ||
|
||
TwigBridge | ||
---------- | ||
|
||
* deprecated the `$requestStack` and `$requestContext` arguments of the | ||
`HttpFoundationExtension`, pass a `Symfony\Component\HttpFoundation\UrlHelper` | ||
instance as the only argument instead | ||
|
||
Workflow | ||
-------- | ||
|
||
* `initial_place` is deprecated in favour of `initial_marking`. | ||
|
||
Before: | ||
```yaml | ||
framework: | ||
workflows: | ||
article: | ||
initial_place: draft | ||
``` | ||
|
||
After: | ||
```yaml | ||
framework: | ||
workflows: | ||
article: | ||
initial_marking: [draft] | ||
``` | ||
|
||
* `MarkingStoreInterface::setMarking()` will have a third argument in Symfony 5.0. | ||
|
||
Before: | ||
```php | ||
class MyMarkingStore implements MarkingStoreInterface | ||
{ | ||
public function setMarking($subject, Marking $marking) | ||
{ | ||
} | ||
} | ||
``` | ||
|
||
After: | ||
```php | ||
class MyMarkingStore implements MarkingStoreInterface | ||
{ | ||
public function setMarking($subject, Marking $marking , array $context = []) | ||
{ | ||
} | ||
} | ||
``` | ||
|
||
* `MultipleStateMarkingStore` is deprecated. Use `MethodMarkingStore` instead. | ||
|
||
Before: | ||
```yaml | ||
framework: | ||
workflows: | ||
type: workflow | ||
article: | ||
marking_store: | ||
type: multiple | ||
arguments: states | ||
``` | ||
|
||
After: | ||
```yaml | ||
framework: | ||
workflows: | ||
type: workflow | ||
article: | ||
marking_store: | ||
type: method | ||
property: states | ||
``` | ||
|
||
* `SingleStateMarkingStore` is deprecated. Use `MethodMarkingStore` instead. | ||
|
||
Before: | ||
```yaml | ||
framework: | ||
workflows: | ||
article: | ||
marking_store: | ||
arguments: state | ||
``` | ||
|
||
After: | ||
```yaml | ||
framework: | ||
workflows: | ||
type: state_machine | ||
article: | ||
marking_store: | ||
type: method | ||
property: state | ||
``` | ||
|
||
* Using a workflow with a single state marking is deprecated. Use a state machine instead. | ||
|
||
Before: | ||
```yaml | ||
framework: | ||
workflows: | ||
article: | ||
type: workflow | ||
marking_store: | ||
type: single_state | ||
``` | ||
|
||
After: | ||
```yaml | ||
framework: | ||
workflows: | ||
article: | ||
type: state_machine | ||
marking_store: | ||
# type: single_state # Since the single_state marking store is deprecated, use method instead | ||
type: method | ||
``` | ||
|
||
Yaml | ||
---- | ||
|
||
* Using a mapping inside a multi-line string is deprecated and will throw a `ParseException` in 5.0. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr #31220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr #31220
Changes from all commits
f7ec2d3
da4db91
26d15c8
09e8d74
098a7ac
8977f74
8f81f55
fe75920
4fc6033
a45235e
8f8c82e
292021b
ec18af4
45fd75e
9ab706b
3151b54
4b61602
550a569
9793522
a12b359
76fd9c3
a7c4767
fe7363f
a515635
e6eb43b
e6e4cde
2e5e910
c336696
4e2b655
5fe3701
40f2512
fb2b37a
73708a6
87839cf
0393535
f527acf
2f648b0
f4c2350
09dee17
3f25734
9bbdab6
62ab775
f82f1c0
ea5ff18
997270f
c976866
de3c742
f0786bb
ede6660
a2f9975
aecca97
8ac712b
b045aca
f551f2d
07d90f9
31b3a55
f3a0555
4c78e60
e5f14b7
e2e38de
adba41a
6e0785f
f587944
a524658
a68b4c7
69f0a0b
1546c0d
ce220cd
58d78ac
536e53f
c73fd10
0d704b4
5c0acfb
05e488f
8a62892
56fa574
9a2787e
7628972
3de3e4e
e05aaf9
f80df4c
9afcc7b
6b57ea9
fad7c8c
44d9fbe
a84842b
faf6293
de12e23
50c22b3
0c2a2bf
fec4bea
65b46a5
e2dbe63
0b671aa
4c04601
e53f696
8acf29e
680074d
03da3a2
5bf7ad4
758f028
1f66e7b
9e2f506
5b72386
0d365a8
77424c8
388d8f5
2b01eaa
76906ab
04eed54
ca29039
4447f87
287c39b
35bf420
3df05e0
b0989aa
dd93b70
9a2fcc9
226b36e
c6505d3
b0cdf45
47e571b
c274dff
e5de7b3
a234c89
c68ef46
9f3ce48
b7281ce
d412e77
0c82173
2efd7b2
6b6c24c
4518ac5
44eb7a0
408e4aa
02e865b
546b114
e02cbe9
3568418
5638d6a
fa7df09
f539932
e991472
9b9d416
4f39339
35b1ded
9d3c86f
bf89907
87c4cc1
d56ebef
fbd439e
fa308e2
682855f
caad562
4e1244e
d935f40
dc95a6f
9a7a276
b9e2046
529211d
ace49c1
6a5de47
e77108d
f84766e
ff6bc79
4d9f5ee
4693422
2243bf5
20f4eb3
5c210e6
b09dfd9
601adf5
b2f8f0d
e6455ea
a7ce547
8e45fc0
b6c6338
7e2fbe1
ccbb171
5d4d4e7
e0c4528
e871a6a
751baaf
526cad6
66701b8
15fedec
3a68040
3d2bc48
bc9c89e
713aab7
027bd12
936355e
1c73f9c
9edd84b
< 10000 div class="text-emphasized css-truncate css-truncate-target"> bug #30967 [HttpClient] Document the state object that is passed arou…a36fbe3
b11585e
371b55a
0cf1833
2f73c2f
b34738b
37eff9b
770c7dd
08577f4
e45bc83
9ae73b1
95932df
d6b67d4
5d3d1a0
238f844
f1d3bc0
70b448d
8f69954
498c749
6a94dea
9aedfeb
e683dfa
7cf96a4
278a7ec
5d58307
14ba16b
d140648
96aee57
899985e
0cdb808
8d96861
a59fe66
28f7961
89ec311
e197398
6c3c199
d9bcfc3
823d375
98929dc
4bea198
eab7611
fde4dc9
7e56ef1
3bdf4b0
a7d2019
3278cb1
fba11b4
1e9a9b2
be80868
77f642e
95f09fd
a7d12ee
27d10a6
c5b3b34
6843905
9c76b29
File filter
Filter by extension
Conversations
Jump to