Commit Graph

15662 Commits

Author SHA1 Message Date
Tobias Schultze
111ac18232 unify constructor initialization style throughout symfony 2013-11-11 19:40:07 +01:00
Fabien Potencier
b9b7c8ac8e minor #9427 adjust doctrine dependencies (Tobion)
This PR was merged into the master branch.

Discussion
----------

adjust doctrine dependencies

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

I went through all components/bundles/bridges in symfony and searched for doctrine dependencies. Then looked if it only requires a subset (annotations instead of common for example).

Commits
-------

7366901 adjust doctrine dependencies
2013-11-09 13:05:18 +01:00
Fabien Potencier
b8ec2bfdf0 minor #9407 [Process] Renamed flushOutput() and flushErrorOutput() to clearOutput() and clearErrorOutput() (bschussek)
This PR was merged into the master branch.

Discussion
----------

[Process] Renamed flushOutput() and flushErrorOutput() to clearOutput() and clearErrorOutput()

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

I renamed `flushOutput()` and `flushErrorOutput()` to `clearOutput()` and `clearErrorOutput()` since I find the current naming unintuitive. When reading [the blog post about this feature](http://symfony.com/blog/new-in-symfony-2-4-flushing-stdout-and-stderr-on-a-process) I initially thought that the output would be flushed to the console (as in `ob_flush()`).

Using "clear" on the other hand conforms well with [our conventions](http://symfony.com/doc/current/contributing/code/conventions.html).

Commits
-------

1811367 [Process] Renamed flushOutput() and flushErrorOutput() to clearOutput() and clearErrorOutput()
2013-11-09 13:03:12 +01:00
Fabien Potencier
705384bc5f minor #9450 Fixed typos (pborreli)
This PR was squashed before being merged into the master branch (closes #9450).

Discussion
----------

Fixed typos

Commits
-------

e8af42e Fixed typos
2013-11-09 12:55:32 +01:00
Pascal Borreli
e8af42e780 Fixed typos 2013-11-09 12:55:32 +01:00
Fabien Potencier
d30ffe6d2e bug #9461 set mergeFallback to true, (ychadwick)
This PR was merged into the master branch.

Discussion
----------

set mergeFallback to true,

If your default locale is de_CH for example, then you get an incomplete list of locales. This issue has been resolved in the LanguageBundle and RegionBundle but not in for the LocaleBundle. Would be also a good idea for the CurrencyBundle

Commits
-------

4587d4e set mergeFallback to true, otherwise an uncomplete list is shown with default locale is for example de_CH
2013-11-09 12:39:25 +01:00
Fabien Potencier
99b2570803 bug #9451 Fix bug with variable named context to securityContext (mieszko4)
This PR was merged into the master branch.

Discussion
----------

Fix bug with variable named context to securityContext

Commits
-------

38433d7 Fix bug with variable named context to securityContext in SimplePreAuthenticationListener->handle function
2013-11-09 12:25:24 +01:00
Fabien Potencier
fe9c8bf340 minor #9473 Fixed ExpressionLanguage Readme (peterrehm)
This PR was merged into the master branch.

Discussion
----------

Fixed ExpressionLanguage Readme

Added missing parameter due to which the code in the documentation was not executable.

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

Commits
-------

03a76f5 Added missing parameter to the compile function
2013-11-08 17:04:41 +01:00
Peter Rehm
03a76f5da1 Added missing parameter to the compile function 2013-11-08 16:59:08 +01:00
Yorkie Chadwick
4587d4e28a set mergeFallback to true, otherwise an uncomplete list is shown with default locale is for example de_CH 2013-11-07 16:35:54 +01:00
Tobias Schultze
7366901691 adjust doctrine dependencies 2013-11-07 14:20:52 +01:00
mieszko4
38433d765c Fix bug with variable named context to securityContext in SimplePreAuthenticationListener->handle function 2013-11-05 22:11:59 +01:00
Fabien Potencier
8890627798 fixed visibility 2013-11-04 10:03:40 +01:00
Fabien Potencier
db54be3e0d feature #9434 moved logic for the session listeners into the HttpKernel component (fabpot)
This PR was merged into the master branch.

Discussion
----------

moved logic for the session listeners into the HttpKernel component

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

When working on Silex, I realize that even if we are not using the same container, the logic of the session listeners were the same. So, this PR moves the listeners to HttpKernel to make them reusable outside of the context of the Symfony full-stack framework.

Commits
-------

0ab9c8d moved logic for the session listeners into the HttpKernel component
2013-11-04 07:14:12 +01:00
Fabien Potencier
0ab9c8d046 moved logic for the session listeners into the HttpKernel component 2013-11-04 07:11:47 +01:00
Fabien Potencier
dec28d19d6 bug #9332 [Config] Quoting reserved characters (WouterJ)
This PR was merged into the master branch.

Discussion
----------

[Config] Quoting reserved characters

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

Commits
-------

a5c0123 Use Inline class to quote reserved characters
2013-11-01 07:15:42 +01:00
Wouter J
a5c0123e35 Use Inline class to quote reserved characters 2013-10-31 20:29:46 +01:00
Fabien Potencier
3502ca22a6 minor #9244 [Console] make parent constructor test more reliable (Tobion)
This PR was merged into the master branch.

Discussion
----------

[Console] make parent constructor test more reliable

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixes   | #9186 , f2b60e9
| Tests pass?   | yes
| license?      | MIT

It also fixes the test since f2b60e9 and improves phpdoc

The second commit improves regex performance to validate name (using possesive quantifier).

I did some basic performance tests http://3v4l.org/PuvuL
The new regex only takes 1/3 of the time compared to the old one!

Commits
-------

5798029 [Console] improve regex performance to validate name
22b09ce [Console] make parent constructor test more reliable
2013-10-31 17:40:24 +01:00
Fabien Potencier
7455650904 bug #9423 [Form] fix CsrfProviderAdapter (Tobion)
This PR was merged into the master branch.

Discussion
----------

[Form] fix CsrfProviderAdapter

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixes   | #9418
| Tests pass?   | yes
| license?      | MIT

Commits
-------

887f71c [Form] fix CsrfProviderAdapter
2013-10-31 16:58:10 +01:00
Fabien Potencier
7fecfbce3e minor #9424 fixes #9342 adding on-invalid="ignore" (= null on constructor argument) (cordoval)
This PR was merged into the master branch.

Discussion
----------

fixes #9342 adding on-invalid="ignore" (= null on constructor argument)

👶

Commits
-------

d44fd2d fixes #9342 adding on-invalid="ignore" (= null on constructor argument)
2013-10-31 15:00:33 +01:00
Luis Cordova
d44fd2dd1f fixes #9342 adding on-invalid="ignore" (= null on constructor argument) 2013-10-31 08:45:52 -05:00
Fabien Potencier
f8e88bc7f9 feature #9342 Add X-Debug-Url profiler url header (adrienbrault)
This PR was merged into the master branch.

Discussion
----------

Add X-Debug-Url profiler url header

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

Hey, working with rest APIs I find it way more convenient to have the profiler url directly in the header ... We human are used to deal with hypermedia!
A little bit of hateoas in symfony :)

Commits
-------

2f09754 Add X-Debug-Url profiler url header
2013-10-31 14:30:36 +01:00
Tobias Schultze
887f71c18c [Form] fix CsrfProviderAdapter 2013-10-31 14:22:03 +01:00
Fabien Potencier
f7692beec7 [HttpKernel] added missing use statement 2013-10-31 12:15:14 +01:00
Adrien Brault
2f097540a8 Add X-Debug-Url profiler url header 2013-10-30 10:24:42 -07:00
Fabien Potencier
72f1b62ffb bumped Symfony version to 2.4.0 2013-10-30 16:13:28 +01:00
Fabien Potencier
b6310973d7 updated VERSION for 2.4.0-BETA2 2013-10-30 14:25:52 +01:00
Fabien Potencier
8565c56ce9 updated CHANGELOG for 2.4.0-BETA2 2013-10-30 14:24:23 +01:00
Fabien Potencier
fd336c4766 bug #9408 [Form] Fixed failing FormDataExtractorTest (bschussek)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed failing FormDataExtractorTest

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

Commits
-------

4807c5e [Form] Fixed failing FormDataExtractorTest
2013-10-30 14:19:18 +01:00
Bernhard Schussek
4807c5effc [Form] Fixed failing FormDataExtractorTest 2013-10-30 13:42:39 +01:00
Bernhard Schussek
18113672c1 [Process] Renamed flushOutput() and flushErrorOutput() to clearOutput() and clearErrorOutput() 2013-10-30 13:27:00 +01:00
Fabien Potencier
23f12faa53 fixed CS 2013-10-30 09:33:58 +01:00
Fabien Potencier
9138e1a64c Merge branch '2.3'
* 2.3:
  fixed CS
  fixed CS
  [HttpKernel] fixed memory limit display in MemoryDataCollector
  Fixed the error handling when decoding invalid XML to avoid a Warning
  [Form] Fixed: The "data" option is taken into account even if it is NULL
  [DomCrawler] [HttpFoundation] Make `Content-Type` attributes identification case-insensitive

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Tests/Templating/TimedPhpEngineTest.php
2013-10-30 09:31:46 +01:00
Fabien Potencier
61dd06ea27 fixed CS 2013-10-30 09:30:20 +01:00
Fabien Potencier
43f749e507 Merge branch '2.2' into 2.3
* 2.2:
  fixed CS
  Fixed the error handling when decoding invalid XML to avoid a Warning
  [Form] Fixed: The "data" option is taken into account even if it is NULL
  [DomCrawler] [HttpFoundation] Make `Content-Type` attributes identification case-insensitive

Conflicts:
	src/Symfony/Component/Form/Extension/Core/Type/FormType.php
2013-10-30 09:28:22 +01:00
Fabien Potencier
0211c387d3 fixed CS 2013-10-30 09:27:36 +01:00
Fabien Potencier
c2ca2e0242 minor #9389 [FrameworkBundle] Update deprecation message (asm89)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] Update deprecation message

Small addition to (doc string only):
https://github.com/symfony/symfony/pull/9252

Commits
-------

b057fab [FrameworkBundle] Update deprecation message
2013-10-29 17:17:07 +01:00
Fabien Potencier
d2daf5daac bug #9397 [BUG][Form] Fix nonexistent key id in twig of data collector (francoispluchino)
This PR was merged into the master branch.

Discussion
----------

[BUG][Form] Fix nonexistent key id in twig of data collector

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

When you create a single button form type, the id of data collector does not exist. It's caused by the PR #9394.

Commits
-------

19c74f3 Fix nonexistent key id in twig of data collector
2013-10-29 17:17:02 +01:00
François Pluchino
19c74f3b1d Fix nonexistent key id in twig of data collector 2013-10-28 17:47:24 +01:00
Fabien Potencier
b4e69e8707 bug #9395 [HttpKernel] fixed memory limit display in MemoryDataCollector (hhamon)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] fixed memory limit display in MemoryDataCollector

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

Commits
-------

644f78d [HttpKernel] fixed memory limit display in MemoryDataCollector
2013-10-28 16:22:12 +01:00
Hugo Hamon
644f78d806 [HttpKernel] fixed memory limit display in MemoryDataCollector 2013-10-28 15:46:04 +01:00
Fabien Potencier
d866a5acc4 bug #9168 [FrameworkBundle] made sure that the debug event dispatcher is used everywhere (fabpot)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] made sure that the debug event dispatcher is used everywhere

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

The removal of the Profiler dependency on the TraceableEventDispatcher (#9170) allows to remerge the patch from #9068 that fixes #6686.

This PR also cleans up how profiles are stored. A Profile is now always stored only once.

The fix will only be available on 2.4+ as the changes are too deep to be backported to 2.2 and 2.3.

Commits
-------

1e1835e [FrameworkBundle] made sure that the debug event dispatcher is used everywhere
2013-10-28 15:29:55 +01:00
Fabien Potencier
4bff07956a bug #9388 [Form] Fixed: The "data" option is taken into account even if it is NULL (bschussek)
This PR was merged into the 2.2 branch.

Discussion
----------

[Form] Fixed: The "data" option is taken into account even if it is NULL

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

Commits
-------

c1a3eb3 [Form] Fixed: The "data" option is taken into account even if it is NULL
2013-10-28 14:27:57 +01:00
Fabien Potencier
53315562f2 bug #9394 [Form] Fixed form debugger to work even when no view variables are logged (bschussek)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed form debugger to work even when no view variables are logged

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

Commits
-------

99a4b7e [Form] Fixed form debugger to work even when no view variables are logged  (e.g. upon redirects)
2013-10-28 14:27:05 +01:00
Bernhard Schussek
99a4b7ebdd [Form] Fixed form debugger to work even when no view variables are logged (e.g. upon redirects) 2013-10-28 14:22:47 +01:00
Fabien Potencier
ef695655f5 bug #9391 [Serializer] Fixed the error handling when decoding invalid XML to avoid a Warning (stof)
This PR was merged into the 2.2 branch.

Discussion
----------

[Serializer] Fixed the error handling when decoding invalid XML to avoid a Warning

| 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

Without the exception being thrown here, the call to ``simplexml_import_dom`` throws a warning saying ``Invalid Nodetype to import``.
This has been reported by @Tobion after we refactored FOSRestBundle to use this XmlEncoder instead of a duplication of a previous version of the class: https://github.com/FriendsOfSymfony/FOSRestBundle/pull/583/files#r7221045

Commits
-------

b2550b9 Fixed the error handling when decoding invalid XML to avoid a Warning
2013-10-28 14:03:08 +01:00
Christophe Coevoet
b2550b90ae Fixed the error handling when decoding invalid XML to avoid a Warning 2013-10-28 13:20:44 +01:00
Alexander
b057fab170 [FrameworkBundle] Update deprecation message
Small addition to (doc string only):
https://github.com/symfony/symfony/pull/9252
2013-10-28 11:36:52 +01:00
Bernhard Schussek
c1a3eb3f2e [Form] Fixed: The "data" option is taken into account even if it is NULL 2013-10-28 10:50:26 +01:00
Fabien Potencier
a9c17c3266 feature #9365 prevent PHP from magically setting a 302 header (lsmith77)
This PR was merged into the master branch.

Discussion
----------

prevent PHP from magically setting a 302 header

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes (for people relying on getting a magic 302 when setting a Location header)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

this needs a test case .. but first let me know if you are ok with this change.
see http://www.php.net/manual/en/function.header.php

Commits
-------

c140d4f prevent PHP from magically setting a 302 header, see http://www.php.net/manual/en/function.header.php
2013-10-28 10:44:48 +01:00