Commit Graph

24028 Commits

Author SHA1 Message Date
Alexander M. Turek
78c0a6e3a4 Added a test case for the Logger class. 2015-12-05 11:47:18 +01:00
Christophe Coevoet
77b1ab29f6 minor #16774 [DomCrawler] add upgrade hint on interface changes (havvg)
This PR was merged into the 3.0 branch.

Discussion
----------

[DomCrawler] add upgrade hint on interface changes

Commits
-------

e80e5dc [DomCrawler] add upgrade hint on interface changes
2015-12-05 11:40:42 +01:00
Christophe Coevoet
397ce230c6 bug #16846 [MonologBridge] Monolog Bridge 2.8 is incompatible with HttpKernel 3.0 (derrabus)
This PR was merged into the 2.8 branch.

Discussion
----------

[MonologBridge] Monolog Bridge 2.8 is incompatible with HttpKernel 3.0

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

Greetings from the SymfonyCon hackday. I wanted to start my day with an easy PR. 😉

As pointed out by @anlutro in #16837, MonologBridge 2.8 uses a deprecated interface of HttpKernel that has been removed in 3.0. Because of this, MonologBridge 2.8 must not be marked as compatible with HttpKernel 3.0 in composer.json.

Commits
-------

cb8d2c3 Disallow http-kernel 3.x, fixes #16837.
2015-12-05 11:34:21 +01:00
Nicolas Grekas
021d93a322 [Form] Fix choices defined as Traversable 2015-12-05 11:29:52 +01:00
Christophe Coevoet
0310499f42 minor #16798 [Process] Unset callback after stop to free memory (Slamdunk)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #16798).

Discussion
----------

[Process] Unset callback after stop to free memory

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

As of yet, a `Process` instance can't free memory.
The built-in callback has a self-reference to the intance not cleared after instance destruction.
I've tried to change both `buildCallback` and https://github.com/symfony/process/blob/v2.7.6/Process.php#L1373 usage to avoid self-referencing, but it can't be done without breaking BC, and the memory issue is still there.

A simple test script (that obiously can't be embedded in unit-tests)
```php
for ($inc = 0; $inc < 10000; $inc++) {
    $process = new Symfony\Component\Process\Process('echo 1');
    $process->mustRun();
    $process->stop();
    unset($process);

    echo (memory_get_usage(true) / 1000000) . ' MB ' . $inc . PHP_EOL;
}
```
Before:
```
1.572864 MB 0
5.505024 MB 9999
```
After:
```
1.572864 MB 0
1.572864 MB 9999
```
Ok, in this simple scenario 4 MB of RAM is nothing, but in our business app full of IOC where `unset`-ting is hard, our RAM explodes.

After `stop()`, the callback is no longer necessary.

To be clear, the garbage collector in the previous example was already active.
Deactivating it manually, which somewhere is needed to avoid particluar segfaults, obiously leads to worse scenarios:

Before:
```
 gc_disable();
 1.572864 MB 0
29.360128 MB 9999
```
After:
```
 gc_disable();
 1.572864 MB 0
 1.572864 MB 9999
```

Commits
-------

ec93b9a [Process] Unset callback after stop to free memory
2015-12-05 11:16:21 +01:00
Filippo Tessarotto
ec93b9a7f7 [Process] Unset callback after stop to free memory 2015-12-05 11:16:20 +01:00
Christophe Coevoet
32d5c7877f bug #16816 [Config] Throw an exception when using cannotBeEmpty() with numeric or boolean nodes (Ener-Getick)
This PR was merged into the 3.0 branch.

Discussion
----------

[Config] Throw an exception when using cannotBeEmpty() with numeric or boolean nodes

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

Commits
-------

bc20af2 [Config] Throw an exception when using cannotBeEmpty() on numeric or boolean nodes
2015-12-05 11:11:49 +01:00
Christophe Coevoet
fbc353dcda bug #16799 Improve error message for undefined DIC aliases (mpdude)
This PR was squashed before being merged into the 2.3 branch (closes #16799).

Discussion
----------

Improve error message for undefined DIC aliases

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

Additionally, I think the arguments need to be the other way round (`templating` is an alias pointing to `templating.engine.twig`).

Commits
-------

9195cd3 Improve error message for undefined DIC aliases
2015-12-05 11:09:09 +01:00
Matthias Pigulla
9195cd3e44 Improve error message for undefined DIC aliases 2015-12-05 11:09:07 +01:00
Christophe Coevoet
26d9a6f822 minor #16810 [DependencyInjection] Validate class names and factory methods (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] Validate class names and factory methods

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

Because, you know, people do mistakes... I saw this happening during a workshop: when e.g. the factory tag has no `method` attribute, we generate an container that embeds a parse error.

Commits
-------

b2e3850 [DependencyInjection] Validate class names and factory methods
2015-12-05 11:07:33 +01:00
Christophe Coevoet
944bddf888 bug #16825 [VarDumper] fix .sf-dump z-index (debug bar conflict) (Antoine LA)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #16825).

Discussion
----------

[VarDumper] fix .sf-dump z-index (debug bar conflict)

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

Just changed the z-index because the twig dump is actually displaying over the debug bar (#16824).

Commits
-------

a72efb9 [VarDumper] fixed .sf-dump z-index
2015-12-05 11:02:55 +01:00
Antoine LA
a72efb91c5 [VarDumper] fixed .sf-dump z-index 2015-12-05 11:02:55 +01:00
Christophe Coevoet
2b8c9f8269 minor #16847 [Validator] Updated Luxembourgish translations for 2.8 (mweimerskirch)
This PR was merged into the 2.8 branch.

Discussion
----------

[Validator] Updated Luxembourgish translations for 2.8

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

Commits
-------

7874935 [Validator] Updated Luxembourgish translations for 2.8
2015-12-05 10:41:19 +01:00
Michel Weimerskirch
7874935a58 [Validator] Updated Luxembourgish translations for 2.8
| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
2015-12-05 10:34:52 +01:00
Alexander M. Turek
cb8d2c3691 Disallow http-kernel 3.x, fixes #16837. 2015-12-05 10:16:31 +01:00
Tobias Schultze
6e279c5f8a [FrameworkBundle] prevent cache:clear creating too long paths 2015-12-05 03:07:20 +01:00
Ener-Getick
bc20af2c05 [Config] Throw an exception when using cannotBeEmpty() on numeric or boolean nodes 2015-12-03 20:32:18 +01:00
Nicolas Grekas
b2e3850d85 [DependencyInjection] Validate class names and factory methods 2015-12-03 12:23:33 +01:00
Tobias Schultze
093ea3b07c minor #16821 [VarDumper] ampq → amqp (dereckson)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #16821).

Discussion
----------

[VarDumper] ampq → amqp

| Q             | A
| ------------- | ---
| Fixed tickets | #16821
| License       | MIT

Fixed typo in code comment.

Commits
-------

717caaa ampq → amqp
2015-12-03 11:46:34 +01:00
Sébastien Santoro
717caaa1a9 ampq → amqp
Fixed typo in code comment.
2015-12-03 11:46:32 +01:00
Tobias Schultze
dd7830314a minor #16803 [Form] Add context to FormFactory deprecations (nicolas-grekas)
This PR was merged into the 2.8 branch.

Discussion
----------

[Form] Add context to FormFactory deprecations

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

Commits
-------

e2010d2 [Form] Add context to FormFactory deprecations
2015-12-03 10:22:26 +01:00
Tobias Schultze
8ab107c905 minor #16780 CS: remove unneeded parentheses around control statements (keradus)
This PR was merged into the 2.3 branch.

Discussion
----------

CS: remove unneeded parentheses around control statements

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

Commits
-------

45d250d CS: remove unneeded parentheses around control statements
2015-12-03 10:03:30 +01:00
Tobias Schultze
30f9175f6c minor #16820 Fix typo (j0k3r)
This PR was merged into the 2.3 branch.

Discussion
----------

Fix typo

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

Commits
-------

230acb2 Fix typo
2015-12-03 09:47:44 +01:00
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