Skip to content

[Intl] Add support for ISO 3166-1 Alpha-3 country codes #32676

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

Closed
wants to merge 434 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
434 commits
Select commit Hold shift + click to select a range
457b322
[Routing] Add type-hints to all public interfaces.
derrabus Jun 25, 2019
ba2b5c1
[Form] remove form type validation due to typehints
Tobion Jun 25, 2019
71525d4
minor #32178 [Form] remove form type validation due to typehints (Tob…
fabpot Jun 26, 2019
150f0f2
minor #31984 [EventDispatcher] Add type-hints to EventDispatcherInter…
fabpot Jun 26, 2019
f123436
minor #32176 [Routing] Add type-hints to all public interfaces (derra…
fabpot Jun 26, 2019
f128aee
minor #32153 Make Symfony\Component\Debug\ExceptionHandler::setFileLi…
fabpot Jun 26, 2019
f8ccc81
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
0e43804
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
0c90809
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
148ba1f
Removed legacy code from NumberType
yceruto Jun 26, 2019
d5b01af
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
28cbffc
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
01c0960
Merge branch '4.4'
nicolas-grekas Jun 26, 2019
c10ad18
minor #32183 [Form] Removed legacy code from NumberType (yceruto)
fabpot Jun 26, 2019
8f33c6f
[WebProfilerBundle] Use scalar type-hints where possible
Jun 27, 2019
e13309c
Merge branch '4.4'
fabpot Jun 27, 2019
7f7c142
Merge branch '4.4'
nicolas-grekas Jun 27, 2019
44e5b0b
removed return values
Jun 27, 2019
bef96ee
Merge branch '4.4'
fabpot Jun 27, 2019
3e54cb7
Merge branch '4.4'
fabpot Jun 27, 2019
1d57b80
fix merge
nicolas-grekas Jun 27, 2019
fe3b165
[PropertyInfo] Add type-hints to public interfaces and classes
jschaedl Jun 27, 2019
b26b37d
[OptionResolver] Add type-hints to OptionResolver class
jschaedl Jun 27, 2019
a25848b
Merge branch '4.4'
fabpot Jun 28, 2019
d5bc28a
[DependencyInjection] Added type-hints on compiler passes.
derrabus Jun 27, 2019
cf8cfeb
Merge branch '4.4'
Tobion Jun 28, 2019
614e824
[Routing] Add type-hints RequestContext and Route classes.
derrabus Jun 26, 2019
68b588c
[Serializer] [5.0] Add type-hints to serializer interface
Simperfit Jun 27, 2019
7b3ef19
minor #32181 [Routing] Add type-hints RequestContext and Route classe…
Tobion Jun 28, 2019
58d61dc
Merge branch '4.4'
nicolas-grekas Jun 28, 2019
8ce3a89
[Debug] Remove all deprecated classes that were moved to the ErrorCat…
fancyweb Jun 28, 2019
2891d3b
[ErrorCatcher] Remove all deprecated code
fancyweb Jun 28, 2019
c5715a3
minor #32263 [ErrorCatcher] Remove all deprecated code (fancyweb)
Tobion Jun 28, 2019
aac5765
minor #32261 [Debug] Remove all deprecated classes that were moved to…
Tobion Jun 28, 2019
df3a5cb
add parameter type hints to the Validator component
xabbuh Jun 28, 2019
065fdc1
[Asset] Add type-hints to public interfaces
jschaedl Jun 26, 2019
0781b60
minor #32229 [Serializer] [5.0] Add type-hints to serializer interfac…
fabpot Jun 29, 2019
bac35b0
minor #32202 [Asset] Add type-hints to public interfaces and classes …
fabpot Jun 29, 2019
f2b261d
minor #32233 [PropertyInfo] Add type-hints to public interfaces and c…
fabpot Jun 29, 2019
aaf3ae0
minor #32208 [Csrf] Added type-hint for CsrfTokenMangerInterface (jul…
fabpot Jun 29, 2019
7485b6f
minor #32235 [OptionResolver] Add type-hints to OptionResolver class …
fabpot Jun 29, 2019
e069dc4
[Config] Add type-hints to public interfaces and classes
jschaedl Jun 26, 2019
7739849
minor #32201 [Config] Add type-hints to public interfaces and classes…
fabpot Jun 29, 2019
faaa83c
minor #32238 [DependencyInjection] Added type-hints on compiler passe…
fabpot Jun 29, 2019
eead643
minor #32264 [Validator] add parameter type hints to the Validator co…
fabpot Jun 29, 2019
03f2e90
[Ldap] [5.0] add type-hint to interface and implementation
Simperfit Jun 28, 2019
a6677ca
minor #32253 [Ldap] [5.0] add type-hint to interface and implementati…
fabpot Jun 29, 2019
38b9b95
Merge branch '4.4'
fabpot Jun 29, 2019
0a41f6c
[Cache] [5.0] add type hint to cache
Simperfit Jun 29, 2019
d442028
[CSRF] add more parameter types
Tobion Jun 29, 2019
2ca8354
[Config] finish adding parameter types
Tobion Jun 29, 2019
63f4d13
minor #32282 [Cache] [5.0] Add type-hint to the Cache component. (Sim…
nicolas-grekas Jun 30, 2019
1919c7d
[Cache] finish type-hints
Tobion Jul 1, 2019
80f5f40
[Workflow] Remove DefinitionBuilder::setInitialPlace()
lyrixx Jul 1, 2019
8fb4741
minor #32301 [Workflow] Remove DefinitionBuilder::setInitialPlace() (…
lyrixx Jul 1, 2019
62e615b
[Workflow] Added parameter typhint where possible
lyrixx Jun 27, 2019
ca1cfec
Monolog 2 compatibility.
derrabus Jul 9, 2018
0541034
Merge branch '4.4'
Tobion Jul 2, 2019
f800d01
minor #32298 [Cache] finish type-hints (Tobion)
Tobion Jul 2, 2019
393f9ae
minor #32285 [CSRF] add more parameter types (Tobion)
Tobion Jul 2, 2019
51b3c2e
[Security] [Guard] Added type-hints to AuthenticatorInterface
thomasbisignani Jun 28, 2019
3e647d4
[CssSelector] [5.0] Add type-hint whenever possible
Simperfit Jul 3, 2019
cc9778e
minor #32254 [Security] [Guard] Added type-hints to AuthenticatorInte…
fabpot Jul 3, 2019
d763e63
[Security] Added type-hints to password encoders.
derrabus Jul 3, 2019
8c46b95
[Security] Added type-hints to auth providers, tokens and voters.
derrabus Jul 3, 2019
62abb70
[Security] Added type-hints to user providers.
derrabus Jul 3, 2019
26f6509
[ExpressionLanguage] [5.0] add type-hints whenever possible
Simperfit Jul 3, 2019
b163a95
minor #32353 [Security] Added type-hints to user providers (derrabus)
fabpot Jul 4, 2019
7af0c73
minor #32352 [Security] Added type-hints to password encoders (derrabus)
fabpot Jul 4, 2019
6128276
minor #32351 [Security] Added type-hints to auth providers, tokens an…
fabpot Jul 4, 2019
a569a6b
[HttpFoundation] Removed ApacheRequest
lyrixx Jul 4, 2019
90c1603
minor #32346 [ExpressionLanguage] [5.0] add type-hints whenever possi…
fabpot Jul 4, 2019
fa727be
minor #32358 [HttpFoundation] Removed ApacheRequest (lyrixx)
fabpot Jul 4, 2019
155cfb2
Merge branch '4.4'
nicolas-grekas Jul 4, 2019
22c58f5
[Validator] Fix tests
ogizanagi Jul 4, 2019
cf6a5b3
minor #32372 [Validator] Fix tests (ogizanagi)
nicolas-grekas Jul 4, 2019
26b804e
[Validator] Change Length::$allowEmptyString default to false & make …
ogizanagi Jul 4, 2019
242eecc
Merge branch '4.4'
nicolas-grekas Jul 4, 2019
efdff59
Merge branch '4.4'
nicolas-grekas Jul 4, 2019
8369270
Merge branch '4.4'
nicolas-grekas Jul 4, 2019
f065c41
feature #32373 [Validator] Change Length::$allowEmptyString default t…
fabpot Jul 5, 2019
c1fe1fa
minor #32328 [CssSelector] [5.0] Add type-hint whenever possible (Sim…
fabpot Jul 5, 2019
bfabad4
minor #32286 [Config] finish adding parameter types (Tobion)
fabpot Jul 5, 2019
fb3d92d
fixed CS
fabpot Jul 5, 2019
5c964c5
[Process] [5.0] Replace docblocks by type-hints
Jun 28, 2019
7eb0912
minor #32273 [Process] [5.0] Replace docblocks by type-hints (Philipp…
fabpot Jul 5, 2019
91138a9
[PropertyAccess] Add type-hints to public interfaces and classes
jschaedl Jun 27, 2019
e5adbe6
minor #32234 [PropertyAccess] Add type-hints to public interfaces and…
fabpot Jul 5, 2019
78dc3c3
minor #32223 [Workflow] Added parameter typhint where possible (lyrixx)
fabpot Jul 5, 2019
470996f
[5.0] [Translator] Add parameter type-hints where possible
Jun 27, 2019
53e68f7
minor #32218 [5.0] [Translator] Add parameter type-hints where possib…
fabpot Jul 5, 2019
885a192
minor #32216 [5.0] [WebProfilerBundle] Add parameter type-hints where…
fabpot Jul 5, 2019
580b126
[DomCrawler] [5.0] add type-hint whenever possible
Simperfit Jul 3, 2019
22437d4
Merge branch '4.4'
nicolas-grekas Jul 5, 2019
ba7dab6
[5.0][Filesystem] add parameter type hints
Jun 28, 2019
be0e4bd
[BrowserKit] [5.0] Add type-hint to browserkit classes
Simperfit Jun 29, 2019
7f98903
[5.0][Finder] add parameter type-hints
Jun 28, 2019
33fddce
clean up remaining deprecations
xabbuh Jul 5, 2019
4786098
minor #32393 clean up remaining deprecations (xabbuh)
Tobion Jul 5, 2019
123d5b2
Merge branch '4.4'
Tobion Jul 5, 2019
d6d4aba
remove tests for legacy behaviour
xabbuh Jul 6, 2019
d17b333
minor #32404 [Validator] remove tests for legacy behaviour (xabbuh)
ogizanagi Jul 6, 2019
f03bf95
[Validator] Small fix to previous commit
ogizanagi Jul 6, 2019
68f9f27
[DependencyInjection] Add type-hints to interfaces and implementations.
derrabus Jun 28, 2019
b057243
minor #32266 [DependencyInjection] Add type-hints to interfaces and i…
Tobion Jul 6, 2019
211b718
Added type-hints to LazyProxy classes and interfaces.
derrabus Jun 28, 2019
5626830
[Templating] Added type-hints to all classes.
derrabus Jul 1, 2019
3a29877
minor #32243 [5.0][Finder] add parameter type-hints (smoench)
fabpot Jul 8, 2019
d38f4b0
minor #32247 [5.0][Filesystem] add parameter type hints (smoench)
fabpot Jul 8, 2019
faf5e8b
minor #32329 [DomCrawler] [5.0] add type-hint whenever possible (Simp…
fabpot Jul 8, 2019
10e152f
minor #32280 [BrowserKit] [5.0] Add type-hint to all classes (Simperfit)
fabpot Jul 8, 2019
e071953
minor #32313 [Templating] Added type-hints to all classes (derrabus)
fabpot Jul 8, 2019
a6f26a8
Merge branch '4.4'
fabpot Jul 8, 2019
26624ed
[Console] [5.0] Add all type-hint
Simperfit Jul 2, 2019
69d39c1
minor #32318 [Console] [5.0] Add all type-hint (Simperfit)
fabpot Jul 8, 2019
e9a2e3f
minor #32283 [DependencyInjection][ProxyManagerBridge] Added type-hin…
fabpot Jul 8, 2019
40d04ec
feature #27905 [MonologBridge] Monolog 2 compatibility (derrabus)
fabpot Jul 8, 2019
906b3ca
removed support for Twig 1.x
fabpot Jul 9, 2019
8172d0f
feature #32458 Remove support for Twig 1.x (fabpot)
fabpot Jul 9, 2019
059113e
Removed templateExists method
yceruto Jul 9, 2019
5d8580b
minor #32461 [WebProfilerBundle] Removed templateExists method (yceruto)
fabpot Jul 9, 2019
377f5ed
[FrameworkBundle] Added type declarations where possible.
derrabus Jul 10, 2019
4631e9c
Merge branch '4.4'
nicolas-grekas Jul 11, 2019
668f649
Merge branch '4.4'
nicolas-grekas Jul 11, 2019
448c777
Merge branch '4.4'
nicolas-grekas Jul 11, 2019
531ac23
[Translator] fix merge
nicolas-grekas Jul 11, 2019
56d2179
Merge branch '4.4'
nicolas-grekas Jul 11, 2019
a8f9727
Merge branch '4.4'
fabpot Jul 12, 2019
08c80eb
fixed CS
fabpot Jul 12, 2019
f62a988
remove outdated changelog entries
xabbuh Jul 13, 2019
f2b8329
remove deprecated features
xabbuh Jul 13, 2019
8a17e4a
minor #32534 [Debug] remove outdated changelog entries (xabbuh)
fabpot Jul 15, 2019
7dee61c
minor #32531 remove deprecated features (xabbuh)
fabpot Jul 15, 2019
330a093
Merge branch '4.4'
nicolas-grekas Jul 17, 2019
36c306d
Merge branch '4.4'
nicolas-grekas Jul 18, 2019
3b61889
Merge branch '4.4'
fabpot Jul 18, 2019
4f351f8
Merge branch '4.4'
nicolas-grekas Jul 18, 2019
bd05642
[Debug] drop the component
nicolas-grekas Jul 18, 2019
b52149f
[Security] drop the component
nicolas-grekas Jul 18, 2019
2a816aa
minor #32601 [Security] drop the component (nicolas-grekas)
fabpot Jul 18, 2019
c910095
minor #32600 [Debug] drop the component (nicolas-grekas)
fabpot Jul 18, 2019
66547a4
Merge branch '4.4'
nicolas-grekas Jul 18, 2019
aad6d2a
Merge branch '4.4'
nicolas-grekas Jul 18, 2019
66564ed
Merge branch '4.4'
nicolas-grekas Jul 19, 2019
fa4bade
remove deprecated inheritEnvironmentVariables() method
xabbuh Jul 19, 2019
cade808
minor #32620 [Process] remove deprecated inheritEnvironmentVariables(…
fabpot Jul 19, 2019
3ba3ae9
[Filesystem] Fix error message
Jul 22, 2019
34fff11
minor #32650 [Filesystem] Fix error message (chalasr)
fabpot Jul 22, 2019
0da4771
Merge branch '4.4'
nicolas-grekas Jul 23, 2019
e74149a
Merge branch '4.4'
nicolas-grekas Jul 23, 2019
bf34aa8
Merge branch '4.4'
nicolas-grekas Jul 23, 2019
1f192f1
Merge branch '4.4'
Tobion Jul 24, 2019
452f66d
[TwigBundle] remove deprecations
Tobion Jul 24, 2019
4dc9ff6
[Routing][FrameworkBundle] Remove deprecated ServiceRouterLoader, Obj…
fancyweb Jul 24, 2019
bf5a4da
minor #32697 [Routing][FrameworkBundle] Remove deprecated ServiceRout…
fabpot Jul 24, 2019
ae2807f
minor #32696 [TwigBundle] remove deprecations and fix tests (Tobion)
fabpot Jul 24, 2019
b3eb972
Merge branch '4.4'
nicolas-grekas Jul 24, 2019
9edb23d
Merge branch '4.4'
xabbuh Jul 24, 2019
475c069
Merge branch '4.4'
Tobion Jul 25, 2019
0222860
[TwigBundle] Add missing CHANGELOG entries and remove deprecated temp…
yceruto Jul 24, 2019
40b7857
minor #32714 [TwigBundle] Add missing CHANGELOG entries and remove de…
Tobion Jul 25, 2019
1cc7067
Merge branch '4.4'
nicolas-grekas Jul 26, 2019
47881a6
remove the deprecated scale option of the IntegerType
xabbuh Jul 26, 2019
f2a4a19
add some missing type declarations
xabbuh Jul 26, 2019
2663464
add parameter type declarations where possible
xabbuh Jul 27, 2019
d8797c4
minor #32761 [Yaml] add some missing type declarations (xabbuh)
fabpot Jul 27, 2019
55d9c51
remove the deprecated "switch_user.stateless" option
xabbuh Jul 27, 2019
d1f932e
minor #32768 [Form] remove the deprecated scale option of the Integer…
fabpot Jul 27, 2019
0f84bd6
minor #32770 [SecurityBundle] remove the deprecated "switch_user.stat…
fabpot Jul 27, 2019
7d64644
minor #32769 [DoctrineBridge] add parameter type declarations where p…
fabpot Jul 27, 2019
45148dd
minor #32480 [FrameworkBundle] Added type declarations where possible…
fabpot Jul 27, 2019
f815bce
Merge branch '4.4'
fabpot Jul 27, 2019
e852e76
Merge branch '4.4'
fabpot Jul 27, 2019
b247c16
fix tests
xabbuh Jul 27, 2019
be50e2e
minor #32777 [SecurityBundle] fix tests (xabbuh)
xabbuh Jul 27, 2019
4dd3c54
add parameter type declarations where possible
xabbuh Jul 27, 2019
c4a0086
minor #32775 [TwigBundle] add parameter type declarations where possi…
fabpot Jul 27, 2019
b9fa515
add parameter type declarations where possible
xabbuh Jul 28, 2019
f545ba1
minor #32774 [TwigBridge] add parameter type declarations where possi…
Tobion Jul 28, 2019
1266a39
remove the deprecated ExceptionController
xabbuh Jul 27, 2019
fde09a2
add parameter type declarations where possible
xabbuh Jul 28, 2019
672c95e
minor #32778 [SecurityBundle] add parameter type declarations where p…
Tobion Jul 29, 2019
b41e34d
minor #32776 [WebProfilerBundle] remove the deprecated ExceptionContr…
Tobion Jul 29, 2019
c9e129c
Merge branch '4.4'
xabbuh Jul 29, 2019
ab7228f
Merge branch '4.4'
Tobion Jul 29, 2019
ff4528e
[Stopwatch] Add type-hints for Stopwatch and Section classes
jschaedl Jun 28, 2019
538cc34
[Stopwatch] fix wrong nullable type
Tobion Jul 28, 2019
7b354df
minor #32242 [Stopwatch] Add type-hints for Stopwatch and Section cla…
Tobion Jul 29, 2019
85016e8
Merge branch '4.4'
nicolas-grekas Jul 29, 2019
3dc6033
drop support for differing timezones without ref date
xabbuh Jul 26, 2019
1f8f4f2
minor #32759 [Form] drop support for differing timezones without ref …
xabbuh Jul 30, 2019
7b43117
Merge branch '4.4'
nicolas-grekas Jul 31, 2019
f1368b4
Merge branch '4.4'
nicolas-grekas Jul 31, 2019
7acd702
Merge branch '4.4'
nicolas-grekas Jul 31, 2019
004ac52
[ErrorHandler] remove deprecated class
nicolas-grekas Jul 31, 2019
e11e4a5
[Bridge/PhpUnit] add SetUpTearDownTrait
nicolas-grekas Jul 31, 2019
2671359
[Bridge/PhpUnit] rename SetUpTearDownTrait to ForwardCompatTrait
nicolas-grekas Jul 31, 2019
8ac4198
[Bridge/PhpUnit] rename ForwardCompatTrait to ForwardCompatTestTrait
nicolas-grekas Jul 31, 2019
5f29340
Merge branch '4.4'
nicolas-grekas Jul 31, 2019
2f9e2ca
Merge branch '4.4'
nicolas-grekas Jul 31, 2019
00f4c7a
[DI] fix tests
nicolas-grekas Jul 31, 2019
a41e93e
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
14b21c7
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
2009f44
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
41e931d
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
625fb52
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
93d206d
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
62655b6
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
57c533f
bump required PHP versions
xabbuh Aug 1, 2019
b0d22d8
minor #32871 bump required PHP versions (xabbuh)
yceruto Aug 1, 2019
3d52d5a
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
c7a8ce5
[Bridge/PhpUnit] Add polyfill for expectException*
jderusse Aug 1, 2019
c7bade2
minor #32869 [PhpUnitBridge] Add polyfill for expectException* method…
nicolas-grekas Aug 1, 2019
fe11c99
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
891b44f
Merge branch '4.4'
nicolas-grekas Aug 1, 2019
ad1dd6c
[DoctrineBridge] Removed RegistryInterface (closes #32394)
Koc Aug 1, 2019
ccf747b
minor #32876 [DoctrineBridge] Removed RegistryInterface (Koc)
Tobion Aug 2, 2019
69092dc
Merge branch '4.4'
nicolas-grekas Aug 2, 2019
d1ef28e
Merge branch '4.4'
nicolas-grekas Aug 2, 2019
a8b8db5
Merge branch '4.4'
nicolas-grekas Aug 2, 2019
db414a0
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
2041f82
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
01a5a2f
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
9ca573b
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
d0a7d29
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
63fd05f
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
2c0e0ca
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
6988e91
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
63ad8dc
Merge branch '4.4'
nicolas-grekas Aug 3, 2019
d336b11
Merge branch '4.4'
nicolas-grekas Aug 4, 2019
9d9e8dc
Merge branch '4.4'
nicolas-grekas Aug 4, 2019
2d594d5
Merge branch '4.4'
xabbuh Aug 5, 2019
7d6fc14
remove the deprecated LdapUserProvider class
xabbuh Aug 5, 2019
6497ec3
minor #32939 [Security] remove the deprecated LdapUserProvider class …
Aug 5, 2019
920a52d
[Ldap] Fix signature compat
Aug 5, 2019
fc6d6c9
minor #32942 [Ldap] Fix LdapUserProvider signatures (chalasr)
Aug 5, 2019
f4ca628
Merge branch '4.4'
nicolas-grekas Aug 5, 2019
eca1f03
Merge branch '4.4'
nicolas-grekas Aug 5, 2019
5140c33
Merge branch '4.4'
fabpot Aug 5, 2019
9056860
fixed bad merge
fabpot Aug 5, 2019
a9ba2db
Fix branch aliases.
derrabus Aug 5, 2019
505570b
minor #32966 [ErrorHandler][ErrorRenderer] Fix branch aliases (derrabus)
yceruto Aug 5, 2019
b3c9b59
Merge branch '4.4'
nicolas-grekas Aug 6, 2019
5a6f001
bump phpunit-bridge cache-id
nicolas-grekas Aug 6, 2019
6631447
Merge branch '4.4'
nicolas-grekas Aug 6, 2019
47d121a
Merge branch '4.4'
nicolas-grekas Aug 6, 2019
008d135
[Lock] remove deprecated code
Simperfit Jul 16, 2019
ee96bf4
minor #32555 [Lock] remove deprecated code (Simperfit)
fabpot Aug 6, 2019
9fcdddd
Merge branch '4.4'
xabbuh Aug 6, 2019
4cd007b
Support ISO 3166-1 Alpha-3 country codes
terjebraten-certua Jul 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ init:
- SET PATH=c:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET SYMFONY_DEPRECATIONS_HELPER=strict
- SET "SYMFONY_REQUIRE=>=4.2"
- SET "SYMFONY_REQUIRE=>=4.4"
- SET ANSICON=121x90 (121x90)
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f

install:
- mkdir c:\php && cd c:\php
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-7.1.3-Win32-VC14-x86.zip
- 7z x php-7.1.3-Win32-VC14-x86.zip -y >nul
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-7.2.9-Win32-VC15-x86.zip
- 7z x php-7.2.9-Win32-VC15-x86.zip -y >nul
- cd ext
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-5.1.8-7.1-ts-vc14-x86.zip
- 7z x php_apcu-5.1.8-7.1-ts-vc14-x86.zip -y >nul
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-5.1.17-7.2-ts-vc15-x86.zip
- 7z x php_apcu-5.1.17-7.2-ts-vc15-x86.zip -y >nul
- cd ..
- copy /Y php.ini-development php.ini-min
- echo memory_limit=-1 >> php.ini-min
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ addons:

env:
global:
- MIN_PHP=7.1.3
- MIN_PHP=7.2.9
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/shims/php
- SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1
- MESSENGER_AMQP_DSN=amqp://localhost/%2f/messages
- MESSENGER_REDIS_DSN=redis://127.0.0.1:7001/messages

matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.2
env: deps=high
- php: 7.3
Expand Down Expand Up @@ -236,7 +236,7 @@ install:
- |
# Install symfony/flex
if [[ $deps = low ]]; then
export SYMFONY_REQUIRE='>=2.3'
export SYMFONY_REQUIRE='>=3.4'
else
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
fi
Expand Down
16 changes: 6 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
}
],
"require": {
"php": "^7.1.3",
"php": "^7.2.9",
"ext-xml": "*",
"doctrine/event-manager": "~1.0",
"doctrine/persistence": "~1.0",
"fig/link-util": "^1.0",
"twig/twig": "^1.41|^2.10",
"twig/twig": "^2.10",
"psr/cache": "~1.0",
"psr/container": "^1.0",
"psr/link": "^1.0",
Expand All @@ -31,7 +31,6 @@
"symfony/polyfill-intl-icu": "~1.0",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.5",
"symfony/polyfill-php73": "^1.11"
},
"replace": {
Expand All @@ -43,7 +42,6 @@
"symfony/console": "self.version",
"symfony/css-selector": "self.version",
"symfony/dependency-injection": "self.version",
"symfony/debug": "self.version",
"symfony/debug-bundle": "self.version",
"symfony/doctrine-bridge": "self.version",
"symfony/dom-crawler": "self.version",
Expand Down Expand Up @@ -77,7 +75,6 @@
"symfony/property-info": "self.version",
"symfony/proxy-manager-bridge": "self.version",
"symfony/routing": "self.version",
"symfony/security": "self.version",
"symfony/security-core": "self.version",
"symfony/security-csrf": "self.version",
"symfony/security-guard": "self.version",
Expand All @@ -95,7 +92,6 @@
"symfony/var-exporter": "self.version",
"symfony/web-link": "self.version",
"symfony/web-profiler-bundle": "self.version",
"symfony/web-server-bundle": "self.version",
"symfony/workflow": "self.version",
"symfony/yaml": "self.version"
},
Expand All @@ -108,9 +104,9 @@
"doctrine/dbal": "~2.4",
"doctrine/orm": "~2.4,>=2.4.5",
"doctrine/reflection": "~1.0",
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-bundle": "^1.5|^2.0",
"masterminds/html5": "^2.6",
"monolog/monolog": "~1.11",
"monolog/monolog": "^1.11|^2",
"nyholm/psr7": "^1.0",
"ocramius/proxy-manager": "^2.1",
"php-http/httplug": "^1.0|^2.0",
Expand All @@ -124,7 +120,7 @@
},
"conflict": {
"masterminds/html5": "<2.6",
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
"phpdocumentor/reflection-docblock": "<3.2.2",
"phpdocumentor/type-resolver": "<0.3.0",
"ocramius/proxy-manager": "<2.1",
"phpunit/phpunit": "<5.4.3"
Expand Down Expand Up @@ -157,7 +153,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-master": "4.4-dev"
"dev-master": "5.0-dev"
}
}
}
7 changes: 7 additions & 0 deletions src/Symfony/Bridge/Doctrine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

5.0.0
-----

* passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field, throws an exception; pass `null` instead
* not explicitly passing an instance of `IdReader` to `DoctrineChoiceLoader` when it can optimize single id field, will not apply any optimization
* `DoctrineExtractor` now requires an `EntityManagerInterface` on instantiation

4.4.0
-----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function isOptional()
/**
* {@inheritdoc}
*/
public function warmUp($cacheDir)
public function warmUp(string $cacheDir)
{
foreach ($this->registry->getManagers() as $em) {
// we need the directory no matter the proxy cache generation strategy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ public function __construct(ManagerRegistry $registry)

/**
* Adds the stack logger for a connection.
*
* @param string $name
* @param DebugStack $logger
*/
public function addLogger($name, DebugStack $logger)
public function addLogger(string $name, DebugStack $logger)
{
$this->loggers[$name] = $logger;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,8 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder
* Register the alias for this mapping driver.
*
* Aliases can be used in the Query languages of all the Doctrine object managers to simplify writing tasks.
*
* @param array $mappingConfig
* @param string $mappingName
*/
protected function setMappingDriverAlias($mappingConfig, $mappingName)
protected function setMappingDriverAlias(array $mappingConfig, string $mappingName)
{
if (isset($mappingConfig['alias'])) {
$this->aliasMap[$mappingConfig['alias']] = $mappingConfig['prefix'];
Expand All @@ -116,12 +113,9 @@ protected function setMappingDriverAlias($mappingConfig, $mappingName)
/**
* Register the mapping driver configuration for later use with the object managers metadata driver chain.
*
* @param array $mappingConfig
* @param string $mappingName
*
* @throws \InvalidArgumentException
*/
protected function setMappingDriverConfig(array $mappingConfig, $mappingName)
protected function setMappingDriverConfig(array $mappingConfig, string $mappingName)
{
$mappingDirectory = $mappingConfig['dir'];
if (!is_dir($mappingDirectory)) {
Expand Down Expand Up @@ -170,11 +164,8 @@ protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \Re

/**
* Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
*
* @param array $objectManager
* @param ContainerBuilder $container A ContainerBuilder instance
*/
protected function registerMappingDrivers($objectManager, ContainerBuilder $container)
protected function registerMappingDrivers(array $objectManager, ContainerBuilder $container)
{
// configure metadata driver for each bundle based on the type of mapping files found
if ($container->hasDefinition($this->getObjectManagerElementName($objectManager['name'].'_metadata_driver'))) {
Expand Down Expand Up @@ -224,12 +215,9 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont
/**
* Assertion if the specified mapping information is valid.
*
* @param array $mappingConfig
* @param string $objectManagerName
*
* @throws \InvalidArgumentException
*/
protected function assertValidMappingConfiguration(array $mappingConfig, $objectManagerName)
protected function assertValidMappingConfiguration(array $mappingConfig, string $objectManagerName)
{
if (!$mappingConfig['type'] || !$mappingConfig['dir'] || !$mappingConfig['prefix']) {
throw new \InvalidArgumentException(sprintf('Mapping definitions for Doctrine manager "%s" require at least the "type", "dir" and "prefix" options.', $objectManagerName));
Expand All @@ -251,12 +239,9 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object
/**
* Detects what metadata driver to use for the supplied directory.
*
* @param string $dir A directory path
* @param ContainerBuilder $container A ContainerBuilder instance
*
* @return string|null A metadata driver short name, if one can be detected
*/
protected function detectMetadataDriver($dir, ContainerBuilder $container)
protected function detectMetadataDriver(string $dir, ContainerBuilder $container)
{
$configPath = $this->getMappingResourceConfigDirectory();
$extension = $this->getMappingResourceExtension();
Expand Down Expand Up @@ -285,30 +270,21 @@ protected function detectMetadataDriver($dir, ContainerBuilder $container)
/**
* Loads a configured object manager metadata, query or result cache driver.
*
* @param array $objectManager A configured object manager
* @param ContainerBuilder $container A ContainerBuilder instance
* @param string $cacheName
*
* @throws \InvalidArgumentException in case of unknown driver type
*/
protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, $cacheName)
protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, string $cacheName)
{
$this->loadCacheDriver($cacheName, $objectManager['name'], $objectManager[$cacheName.'_driver'], $container);
}

/**
* Loads a cache driver.
*
* @param string $cacheName The cache driver name
* @param string $objectManagerName The object manager name
* @param array $cacheDriver The cache driver mapping
* @param ContainerBuilder $container The ContainerBuilder instance
*
* @return string
*
* @throws \InvalidArgumentException
*/
protected function loadCacheDriver($cacheName, $objectManagerName, array $cacheDriver, ContainerBuilder $container)
protected function loadCacheDriver(string $cacheName, string $objectManagerName, array $cacheDriver, ContainerBuilder $container)
{
$cacheDriverServiceId = $this->getObjectManagerElementName($objectManagerName.'_'.$cacheName);

Expand Down Expand Up @@ -411,11 +387,9 @@ protected function fixManagersAutoMappings(array $managerConfigs, array $bundles
*
* @example $name is 'entity_manager' then the result would be 'doctrine.orm.entity_manager'
*
* @param string $name
*
* @return string
*/
abstract protected function getObjectManagerElementName($name);
abstract protected function getObjectManagerElementName(string $name);

/**
* Noun that describes the mapped objects such as Entity or Document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(string $key, string $providerId)
$this->providerId = $providerId;
}

public function create(ContainerBuilder $container, $id, $config)
public function create(ContainerBuilder $container, string $id, array $config)
{
$container
->setDefinition($id, new ChildDefinition($this->providerId))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,7 @@ public function __construct(ObjectManager $manager, string $class, IdReader $idR
$classMetadata = $manager->getClassMetadata($class);

if ($idReader && !$idReader->isSingleId()) {
@trigger_error(sprintf('Passing an instance of "%s" to "%s" with an entity class "%s" that has a composite id is deprecated since Symfony 4.3 and will throw an exception in 5.0.', IdReader::class, __CLASS__, $class), E_USER_DEPRECATED);

// In Symfony 5.0
// throw new \InvalidArgumentException(sprintf('The second argument `$idReader` of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
}

if ((5 > \func_num_args() || false !== func_get_arg(4)) && null === $idReader) {
$idReader = new IdReader($manager, $classMetadata);

if ($idReader->isSingleId()) {
@trigger_error(sprintf('Not explicitly passing an instance of "%s" to "%s" when it can optimize single id entity "%s" has been deprecated in 4.3 and will not apply any optimization in 5.0.', IdReader::class, __CLASS__, $class), E_USER_DEPRECATED);
} else {
$idReader = null;
}
throw new \InvalidArgumentException(sprintf('The second argument `$idReader` of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
}

$this->manager = $manager;
Expand All @@ -75,7 +62,7 @@ public function __construct(ObjectManager $manager, string $class, IdReader $idR
/**
* {@inheritdoc}
*/
public function loadChoiceList($value = null)
public function loadChoiceList(callable $value = null)
{
if ($this->choiceList) {
return $this->choiceList;
Expand All @@ -91,7 +78,7 @@ public function loadChoiceList($value = null)
/**
* {@inheritdoc}
*/
public function loadValuesForChoices(array $choices, $value = null)
public function loadValuesForChoices(array $choices, callable $value = null)
{
// Performance optimization
if (empty($choices)) {
Expand Down Expand Up @@ -123,7 +110,7 @@ public function loadValuesForChoices(array $choices, $value = null)
/**
* {@inheritdoc}
*/
public function loadChoicesForValues(array $values, $value = null)
public function loadChoicesForValues(array $values, callable $value = null)
{
// Performance optimization
// Also prevents the generation of "WHERE id IN ()" queries through the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ public function getEntities();
/**
* Returns an array of entities matching the given identifiers.
*
* @param string $identifier The identifier field of the object. This method
* is not applicable for fields with multiple
* identifiers.
* @param array $values The values of the identifiers
*
* @return array The entities
*/
public function getEntitiesByIds($identifier, array $values);
public function getEntitiesByIds(string $identifier, array $values);
}
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ public function isIntId(): bool
*
* This method assumes that the object has a single-column ID.
*
* @param object $object The object
*
* @return mixed The ID value
*/
public function getIdValue($object)
public function getIdValue(object $object = null)
{
if (!$object) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getEntities()
/**
* {@inheritdoc}
*/
public function getEntitiesByIds($identifier, array $values)
public function getEntitiesByIds(string $identifier, array $values)
{
$qb = clone $this->queryBuilder;
$alias = current($qb->getRootAliases());
Expand Down
Loading