This PR was merged into the 2.2 branch.
Discussion
----------
use the correct class name to retrieve mapped class' metadata and reposi...
...tory
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9646
| License | MIT
| Doc PR |
The validation context isn't necessarily the entity being validated. In case that you added the Unique Entity constraint inside your custom type via the ``constraints`` option the validation context will be the ``Form`` class itself. Thus, not the validation context should be used to get the class metadata and the repository of the validated entity, but the entity itself should be used.
Commits
-------
cd4df11 use the correct class name to retrieve mapped class' metadata and repository
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes#9651).
Discussion
----------
Fix `extract` method to avoid recalculating count() for each iteration.
This PR was submitted on the symfony/DomCrawler read-only repository and moved automatically to the main Symfony repository (closessymfony/DomCrawler#16).
Cache the value of `count($attributes)` to avoid recalculating it for each iteration of the loop.
Since this count will never change during the method execution, this change make the code a bit more efficient.
Commits
-------
9ababf4 Fix `extract` method to avoid recalculating count() for each iteration.
Cache the value of `count($attributes)` to avoid recalculating it for each iteration of the loop.
Since this count will never change during the method execution, this change make the code a bit more efficient.
This PR was merged into the 2.3 branch.
Discussion
----------
[Debug] ensured that a fatal PHP error is actually fatal after being handled by our error handler
This is a follow-up for #9641 where I try to restore the previous code behavior as much as possible.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
d7a4cfb [Debug] ensured that a fatal PHP error is actually fatal after being handled by our error handler
This PR was merged into the 2.2 branch.
Discussion
----------
[WebProfilerBundle] Fixed js escaping in time.html.twig
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
For some event names I received the JavaScript error: ```Uncaught SyntaxError: Unexpected token ILLEGAL```
Commits
-------
4828350 [WebProfilerBundle] Fixed js escaping in time.html.twig
* 2.4:
[Debug] fixed unit tests
Avoid notice from being *eaten* by fatal error.
Teardown used wrong property
Modified guessDefaultEscapingStrategy to not escape txt templates
Fix DateType for 32bits computers.
Fixed the registration of validation.xml file when the form is disabled
fixed lexing expression ending with spaces
Fixes#9633, Removed dependency to Symfony\Bundle\FrameworkBundle\Tests\TestCase
[Validator] Replaced inexistent interface.
[HttpKernel] Fix profiler event-listener usage outside request stack context
When getting the session's id, check if the session is not closed
Fix undefined offset when formatting namespace suggestions
Adjusting CacheClear Warmup method to namespaced kernels
* 2.3:
[Debug] fixed unit tests
Avoid notice from being *eaten* by fatal error.
Teardown used wrong property
Modified guessDefaultEscapingStrategy to not escape txt templates
Fix DateType for 32bits computers.
Fixed the registration of validation.xml file when the form is disabled
Fixes#9633, Removed dependency to Symfony\Bundle\FrameworkBundle\Tests\TestCase
[Validator] Replaced inexistent interface.
When getting the session's id, check if the session is not closed
Adjusting CacheClear Warmup method to namespaced kernels
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php
* 2.2:
Teardown used wrong property
Modified guessDefaultEscapingStrategy to not escape txt templates
Fix DateType for 32bits computers.
Fixed the registration of validation.xml file when the form is disabled
When getting the session's id, check if the session is not closed
This PR was merged into the 2.3 branch.
Discussion
----------
[Debug] Avoid notice from being "eaten" by fatal error.
Workaround for https://bugs.php.net/bug.php?id=54275. Follow-up to PR #9428 and #9449.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8703
| License | MIT
| Doc PR | n/a
Commits
-------
872d584 [Debug] fixed unit tests
2d6c2aa Avoid notice from being *eaten* by fatal error.
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes#9640).
Discussion
----------
Fixed wrong property in test teardown
This PR was submitted on the symfony/EventDispatcher read-only repository and moved automatically to the main Symfony repository (closessymfony/EventDispatcher#2).
Commits
-------
5330603 Teardown used wrong property
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes#9639).
Discussion
----------
Modified guessDefaultEscapingStrategy to not escape txt templates
This PR was submitted on the symfony/TwigBundle read-only repository and moved automatically to the main Symfony repository (closessymfony/TwigBundle#2).
Useful for plaintext emails.
Commits
-------
6affe94 Modified guessDefaultEscapingStrategy to not escape txt templates
This PR was squashed before being merged into the 2.2 branch (closes#9314).
Discussion
----------
[Form] Fix DateType for 32bits computers.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #5227,#5554
| License | MIT
| Doc PR | -
Fix an issue due to 32bits machines, date can be only between 1902-2037.
Simply not add date if false. Can be good to add this to 2.3 and master too.
Commits
-------
b80fb43 [Form] Fix DateType for 32bits computers.
This PR was submitted for the 2.1 branch but it was merged into the 2.2 branch instead (closes#9443).
Discussion
----------
[FrameworkBundle] Fixed the registration of validation.xml file when the form is disabled
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Commits
-------
cfa5aa5 [FrameworkBundle] Fixed the registration of validation.xml file when the form is disabled
This PR was merged into the 2.2 branch.
Discussion
----------
[HttpFoundation] Do not return an empty session id if the session was closed
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #7936
| License | MIT
| Doc PR | ~
A regression from the bug fix#9246 was introduced due to an incomplete fix ;
As the `started` flag on the NativeSessionStorage was not `true` anymore when saving the session, the session id was always empty when saving it, and thus when sending the `PHPSESSID` cookie.
The previous PR I made (#9530) was another approach to solve this regression, but this one should keep the fix made by @tecbot on #9246, and finish it with another verification. I may miss another place where `started` is used, but I don't really see which other conditions depending on this property should be altered...
**Note : this is #9611 rebased on 2.2**
This should be mergeable.
Commits
-------
5b9a727 When getting the session's id, check if the session is not closed
This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes#9621).
Discussion
----------
[ExpressionLanguage] fixed lexing expression ending with spaces
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9606, #9615
| License | MIT
| Doc PR |
Alternative fix for #9615
Commits
-------
d8f61c4 [ExpressionLanguage] fixed lexing expression ending with spaces
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#9636).
Discussion
----------
[Translation] Fixes#9633, Removed dependency to Symfony\Bundle\FrameworkBundle\Tests\TestCase
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9633
| License | MIT
| Doc PR |
Commits
-------
2669486 [Translation] Fixes#9633, Removed dependency to Symfony\Bundle\FrameworkBundle\Tests\TestCase
This PR was merged into the 2.3 branch.
Discussion
----------
[Validator] Replaced inexistent interface
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | no
| Fixed tickets | #9631
| License | MIT
| Doc PR | -
`ClassMetadataFactoryInterface` was removed in 2.3 (#6096) and replaced with `MetadataFactoryInterface`.
Commits
-------
8fd3256 [Validator] Replaced inexistent interface.
This PR was merged into the 2.4 branch.
Discussion
----------
[2.4][HttpKernel] Fix profiler event-listener usage outside request stack context
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
The bug has been reported at https://github.com/silexphp/Silex-WebProfiler/issues/27
todo :
- [x] add unit test
Commits
-------
55a76e7 [HttpKernel] Fix profiler event-listener usage outside request stack context
This introduced a regression from #9246, with an incomplete fix ;
As the `started` flag on the NativeSessionStorage was not `true`
anymore when saving the session, the session id was always empty
when saving it, and thus when sending the `PHPSESSID` cookie
This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes#9624).
Discussion
----------
[Console] Fix undefined offset when formatting namespace suggestions
[`preg_grep`](http://www.php.net/manual/en/function.preg-grep.php) returns an array indexed using the keys from the input array. `array_values` is used in the method `find`, but was missing in `findNamespace`.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9614
| License | MIT
| Doc PR | n/a
Edit: should be merged to 2.4
Commits
-------
f5c4011 [Console] Fix undefined offset when formatting namespace suggestions
This PR was merged into the 2.3 branch.
Discussion
----------
Adjusting CacheClear Warmup method to namespaced kernels
Backported the patch in #9525 to the 2.3 branch.
| Q | A
| ------------- | ---
| Bug fix? | [yes]
| New feature? | [no]
| BC breaks? | [no]
| Deprecations? | [no]
| Tests pass? | have not tried yet
| License | MIT
| Fixed tickets | further fixes#1431
My kernel has been moved and namespaced to `Cfs\Bundle\MultiSiteBundle\Kernel\CfsKernel`. This worked fine until a change was made to how the kernel temp stuff is handled in the warmup phase.
When the app generates its own cache (i.e you run cache without warmup and access the site) everything is generated ok and the .meta files generate the proper reference to the FQN of the Kernel.
However if the warmup is used, it uses `Cfs\Bundle\MultiSiteBundle\Kernel\CfsKerne_` as the temporary Kernel, and when it does "fix references to the Kernel in .meta files" it generates 2 errors.
1. It does not use a string safe tempKernel name, so it never finds the reference to the kernel
2. If you fix that, then it replaces the FQN of the tempKernel with `CfsKernel`, the non-namespaced name of the proper Kernel (it also leaves the character count wrong in the serialization `C:43:<class>` where 43 is the char count for the FQN above)
The two changes above fix this, by escaping the string and replacing it with a FQN Kernel Class name.
What are your thoughts on this? If this sounds reasonable i'll do further enhancements and check tests.
Commits
-------
00d79d5 Adjusting CacheClear Warmup method to namespaced kernels
* 2.4:
[HttpKernel] fixed regression introduced in 2.4 in the base DataCollector class. Added more unit tests coverage for the RequestDataCollector object.
Fixed mistake in upgrade docu
bumped Symfony version to 2.4.0
updated VERSION for 2.4.0-RC1
updated CHANGELOG for 2.4.0-RC1
Container::camelize also takes backslashes into consideration
fixed typos
fixed @expectedException class names
Fix an issue when overriding Client::setServerParameters() and using the getContainer() method in it.
fixed some typos
fixed @expectedException class names
Typo and better wording for german validator translation
* 2.3:
Fixed mistake in upgrade docu
Container::camelize also takes backslashes into consideration
fixed typos
fixed @expectedException class names
fixed some typos
fixed @expectedException class names
Typo and better wording for german validator translation
This PR was merged into the 2.4 branch.
Discussion
----------
[HttpKernel] Http kernel regression fix
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~
Commits
-------
d1e5006 [HttpKernel] fixed regression introduced in 2.4 in the base DataCollector class. Added more unit tests coverage for the RequestDataCollector object.
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#9616).
Discussion
----------
Fixed mistake in upgrade docu
Commits
-------
821006b Fixed mistake in upgrade docu
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes#9610).
Discussion
----------
Container::camelize also takes backslashes into consideration
I [complained](https://github.com/symfony/symfony/pull/8494) about unreported and unnoticed BC break.
Service names in our DI container contain backslashes and that pull request rendered newer versions of Symfony unusable for us.
This commit fixes this - it normalizes backslashes in service names into underscores.
Commits
-------
0f9bb0a Container::camelize also takes backslashes into consideration