Commit Graph

23954 Commits

Author SHA1 Message Date
Jeremy Benoist
230acb2841 Fix typo 2015-12-03 06:49:53 +01:00
Christophe Coevoet
8bd62a5cb4 Merge branch '2.7' into 2.8
* 2.7:
  Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error
2015-12-02 17:06:15 +01:00
Christophe Coevoet
d1d9ab7d2a Merge branch '2.3' into 2.7
* 2.3:
  Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error
2015-12-02 17:04:31 +01:00
Christophe Coevoet
fb791fdbcb bug #16772 Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error (weaverryan)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #16772).

Discussion
----------

Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error

| Q             | A
| ------------- | ---
| Bug fix?      | "yes"
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | n/a

This fixes a "Database not Found" error when using `doctrine/orm` 2.5 while warming up your cache under certain situations. Basically, if you use the `EntityUserProvider`, then during cache warmup, Twig requires the `security.authorization_checker` which eventually requires this `EntityUserProvider`, which previously caused Doctrine to calculate the metadata for your User class. If no database exists (and you haven't specified the platform), you'll get the error.

More broadly, this simply tries to do less work in the constructor. It's a "bug fix", only kind of, but as it's completely an internal refactoring, it should be quite safe.

Thanks!

Commits
-------

44a2861 Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error
2015-12-02 16:35:50 +01:00
Ryan Weaver
44a28612da Refactoring EntityUserProvider::__construct() to not do work, cause cache warm error 2015-12-02 16:35:49 +01:00
Nicolas Grekas
e2010d2fc1 [Form] Add context to FormFactory deprecations 2015-12-02 14:02:29 +01:00
Christophe Coevoet
1552a70e05 bug #16788 Reapply the Yaml bugfix of #16745 (stof)
This PR was merged into the 3.0 branch.

Discussion
----------

Reapply the Yaml bugfix of #16745

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16784
| License       | MIT
| Doc PR        | n/a

The fix done in #16745 was missed when resolving conflicts during the merge to 3.0

Commits
-------

d9393d8 Reapply the Yaml bugfix of #16745
2015-12-02 09:13:48 +01:00
Dariusz Ruminski
d3f671e8f6 CS: general fixes 2015-12-01 23:08:33 +01:00
Christophe Coevoet
d9393d8099 Reapply the Yaml bugfix of #16745 2015-12-01 17:13:59 +01:00
Dariusz Ruminski
45d250d25f CS: remove unneeded parentheses around control statements 2015-12-01 12:58:24 +01:00
Toni Uebernickel
e80e5dc7b4 [DomCrawler] add upgrade hint on interface changes 2015-12-01 08:04:34 +01:00
Nicolas Grekas
e6efe7ee5c [TwigBridge] Clean deps now that 2.8.0 is tagged 2015-12-01 07:51:36 +01:00
Fabien Potencier
7b8865bb87 bumped Symfony version to 3.0.1 2015-11-30 22:21:35 +01:00
Fabien Potencier
eb2a4f5f7a Merge pull request #16766 from fabpot/release-3.0.0
released v3.0.0
2015-11-30 21:59:43 +01:00
Fabien Potencier
72c6b836c9 updated VERSION for 3.0.0 2015-11-30 21:59:24 +01:00
Fabien Potencier
a882401dd2 updated CHANGELOG for 3.0.0 2015-11-30 21:59:12 +01:00
Fabien Potencier
af74da51b3 updated CHANGELOG for 3.0.0 2015-11-30 21:58:04 +01:00
Fabien Potencier
2e3f1cc6d7 Merge branch '2.8'
* 2.8:
  fixed EOM/EOL dates
  bumped Symfony version to 2.8.1
  updated VERSION for 2.8.0
  updated CHANGELOG for 2.8.0
2015-11-30 21:56:47 +01:00
Fabien Potencier
ee739ae230 fixed EOM/EOL dates 2015-11-30 21:56:00 +01:00
Fabien Potencier
bc642fb633 fixed EOM/EOL dates 2015-11-30 21:53:55 +01:00
Fabien Potencier
2ca214fc01 bumped Symfony version to 2.8.1 2015-11-30 21:37:20 +01:00
Fabien Potencier
5615b92cd4 Merge pull request #16763 from fabpot/release-2.8.0
released v2.8.0
2015-11-30 18:26:10 +01:00
Fabien Potencier
a62dbb8e7f updated VERSION for 2.8.0 2015-11-30 18:25:56 +01:00
Fabien Potencier
5be63e5ad0 updated CHANGELOG for 2.8.0 2015-11-30 18:25:42 +01:00
Nicolas Grekas
1ea281fe39 Merge branch '2.8'
* 2.8:
  [Form] Cleanup
  Added the renamed options of the collection type to the upgrade information

Conflicts:
	UPGRADE-2.8.md
	src/Symfony/Component/Form/FormFactory.php
	src/Symfony/Component/Form/Tests/FormFactoryTest.php
2015-11-30 17:36:51 +01:00
Nicolas Grekas
6df8badbe1 minor #16761 [Form] Cleanup (nicolas-grekas)
This PR was merged into the 2.8 branch.

Discussion
----------

[Form] Cleanup

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

ping @stof

Commits
-------

fd8e882 [Form] Cleanup
2015-11-30 17:33:00 +01:00
Nicolas Grekas
fd8e882902 [Form] Cleanup 2015-11-30 17:17:29 +01:00
Fabien Potencier
0055887cbd minor #16659 Added the renamed options of the collection type to the upgrade information (peterrehm)
This PR was merged into the 2.8 branch.

Discussion
----------

Added the renamed options of the collection type to the upgrade information

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

7aac273 Added the renamed options of the collection type to the upgrade information
2015-11-30 15:53:58 +01:00
Nicolas Grekas
fdb419e918 Merge branch '2.8'
* 2.8:
  Fix BC for the default root form name

Conflicts:
	src/Symfony/Component/Form/FormFactory.php
	src/Symfony/Component/Form/Tests/FormFactoryTest.php
2015-11-30 15:11:44 +01:00
Fabien Potencier
b48bbb86f0 bug #16758 Fix BC for the default root form name (stof)
This PR was merged into the 2.8 branch.

Discussion
----------

Fix BC for the default root form name

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15760
| License       | MIT
| Doc PR        | n/a

The block prefix is used, to match the previous behavior when using a custom block prefix.

The form type is now retrieved twice from the registry here, but this should not be an issue:
- unnamed forms are created only at the root, so only once per form at most (child forms are always named explicitly)
- the registry caches the resolved type, so the second access is just accessing the key in the array and returning it

Commits
-------

0a54d09 Fix BC for the default root form name
2015-11-30 14:52:49 +01:00
Christophe Coevoet
0a54d098a9 Fix BC for the default root form name
The block prefix is used, to match the previous behavior when using a
custom block prefix.
2015-11-30 14:33:56 +01:00
Fabien Potencier
f20f2f06cc Merge branch '2.8'
* 2.8:
  add subject variable to expression context
  [Process] Fix signaling/stopping logic on Windows
  Forward compatibility with AbstractLayout* 2.8 tests
  [Yaml] minor CS cleaning
  [Console] do not encode backslashes in console default description
2015-11-30 13:36:17 +01:00
Fabien Potencier
9b6f592542 Merge branch '2.7' into 2.8
* 2.7:
  [Process] Fix signaling/stopping logic on Windows
  Forward compatibility with AbstractLayout* 2.8 tests
  [Yaml] minor CS cleaning
  [Console] do not encode backslashes in console default description
2015-11-30 13:35:10 +01:00
Fabien Potencier
13fda1c7c5 Merge branch '2.3' into 2.7
* 2.3:
  [Process] Fix signaling/stopping logic on Windows
  [Yaml] minor CS cleaning
  [Console] do not encode backslashes in console default description
2015-11-30 13:32:50 +01:00
Fabien Potencier
70f7b1cea6 feature #16754 [Security] allow arbitrary types in VoterInterface::vote() (xabbuh)
This PR was merged into the 3.0-dev branch.

Discussion
----------

[Security] allow arbitrary types in VoterInterface::vote()

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16600
| License       | MIT
| Doc PR        | TODO

Commits
-------

9054bdf allow arbitrary types in VoterInterface::vote()
2015-11-30 13:31:43 +01:00
Fabien Potencier
d9b8d0c1e9 bug #16753 [Process] Fix signaling/stopping logic on Windows (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Fix signaling/stopping logic on Windows

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

9afbea2 [Process] Fix signaling/stopping logic on Windows
2015-11-30 13:29:40 +01:00
Fabien Potencier
37ceef0260 feature #16755 [Security] add subject variable to expression context (xabbuh)
This PR was merged into the 2.8 branch.

Discussion
----------

[Security] add subject variable to expression context

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #16600
| License       | MIT
| Doc PR        | TODO

Commits
-------

346943e add subject variable to expression context
2015-11-30 13:28:23 +01:00
Christian Flothmann
346943e2f5 add subject variable to expression context 2015-11-30 11:54:38 +01:00
Christian Flothmann
9054bdf3ac allow arbitrary types in VoterInterface::vote() 2015-11-30 11:38:54 +01:00
Nicolas Grekas
9afbea27e9 [Process] Fix signaling/stopping logic on Windows 2015-11-30 11:29:50 +01:00
Fabien Potencier
a23444ac1a Merge branch '2.8'
* 2.8:
  [Yaml] look for colon in parsed inline string
  [DI][autowiring] throw exception when many services use the same class.
2015-11-30 09:18:52 +01:00
Fabien Potencier
729b98c2ad bug #16642 [DI][autowiring] throw exception when many services use the same class. (aitboudad)
This PR was merged into the 2.8 branch.

Discussion
----------

[DI][autowiring] throw exception when many services use the same class.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #16639
| Tests pass?   | yes
| License       | MIT

Commits
-------

a21a016 [DI][autowiring] throw exception when many services use the same class.
2015-11-30 07:56:28 +01:00
Tobias Schultze
bcfacac1e1 minor #16749 [Form] Added getBlockPrefix() to ResolvedFormTypeInterface (webmozart)
This PR was merged into the 3.0-dev branch.

Discussion
----------

[Form] Added getBlockPrefix() to ResolvedFormTypeInterface

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This is the follow-up PR to #16724.

If you call `$form->getConfig()->getType()`, all the methods of FormType should be usable. In that sense, ResolvedFormType is the developer-facing version of FormType.

It is true that the same could be achieved with `getInnerType()`, but that method should be used in edge cases only as it clutters the code and makes it confusing to read:

```php
$blockPrefix = $form->getConfig()->getType()->getInnerType()->getBlockPrefix();
```

Commits
-------

7e89345 [Form] Added getBlockPrefix() to ResolvedFormTypeInterface
2015-11-29 23:04:13 +01:00
Bernhard Schussek
7e89345a0d [Form] Added getBlockPrefix() to ResolvedFormTypeInterface 2015-11-29 22:12:04 +01:00
Fabien Potencier
6f349c6ac1 bug #16745 [Yaml] look for colon in parsed inline string (xabbuh)
This PR was merged into the 2.8 branch.

Discussion
----------

[Yaml] look for colon in parsed inline string

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16562
| License       | MIT
| Doc PR        |

Looking for a colon in an unquoted mapping value can lead to falsely
reported parse errors (e.g. when a comment after the mapping value
contains a colon).

Commits
-------

2127058 [Yaml] look for colon in parsed inline string
2015-11-29 20:56:34 +01:00
Christian Flothmann
21270585a6 [Yaml] look for colon in parsed inline string
Looking for a colon in an unquoted mapping value can lead to falsely
reported parse errors (e.g. when a comment after the mapping value
contains a colon).
2015-11-29 19:08:13 +01:00
Nicolas Grekas
d4c8c1362a minor #16744 Forward compatibility with AbstractLayout* 2.8 tests (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

Forward compatibility with AbstractLayout* 2.8 tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Related to #16031

Commits
-------

ef61e54 Forward compatibility with AbstractLayout* 2.8 tests
2015-11-29 18:18:50 +01:00
Nicolas Grekas
ef61e5481f Forward compatibility with AbstractLayout* 2.8 tests 2015-11-29 18:06:34 +01:00
Nicolas Grekas
ab2044f6d8 Merge branch '2.8'
* 2.8:
  [Bridge/Doctrine+Ldap] Fix tests
  Marked the Ldap component as internal and removed Ldap constants polyfill

Conflicts:
	src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
2015-11-29 17:26:49 +01:00
Nicolas Grekas
6ff5015d8f minor #16743 [Bridge/Doctrine+Ldap] Fix tests (nicolas-grekas)
This PR was merged into the 2.8 branch.

Discussion
----------

[Bridge/Doctrine+Ldap] Fix tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Using "choice_list" is deprecated and thus can't work with 3.0 deps loaded. Test upgrades backported from #16725
@csarrazi : the Ldap tests now require the ldap extension. Annotations added.

Commits
-------

4819a70 [Bridge/Doctrine+Ldap] Fix tests
2015-11-29 17:25:46 +01:00