Commit Graph

24880 Commits

Author SHA1 Message Date
Kévin Dunglas
8780e26c9d [FrameworkBundle] Remove unused code in test 2016-01-31 22:09:31 +01:00
Javier Eguiluz
f0b7c14fd2 [2.3] Fixed an undefined variable in Glob::toRegex 2016-01-31 20:27:08 +01:00
Fabien Potencier
83b53f4a89 feature #17611 [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers (jakzal)
This PR was merged into the 3.1-dev branch.

Discussion
----------

[HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers

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

Commits
-------

a38d96e [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers
2016-01-31 15:50:44 +01:00
Jakub Zalas
a38d96e504 [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers 2016-01-31 11:38:53 +00:00
Fabien Potencier
ccc6d311b1 simplified a test 2016-01-31 08:57:13 +01:00
Fabien Potencier
9d8232bf25 Merge branch '2.3' into 2.7
* 2.3:
  fix container cache key generation
  [Translation] Add resources from fallback locale
  [DependencyInjection] enforce tags to have a name
  [YAML] Refine the return value of Yaml::parse()
2016-01-31 08:56:20 +01:00
Fabien Potencier
27de563236 bug #17596 [Translation] Add resources from fallback locale to parent catalogue (c960657)
This PR was merged into the 2.3 branch.

Discussion
----------

[Translation] Add resources from fallback locale to parent catalogue

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

The resources representing a locale includes those of the fallback locale. However, `getCatalogue()->getResources()` only returns the resources belonging specifically to the selected locale.

Example: The locale `en_GB` falls back to `en`. I use the locale `en_GB`. During development, when I modify the `en_GB` translation file, the changes appear instantly when reloading the page. If I modify the `en` translation file, I need to manually clear the cache in order for the new translation to appear.

I believe this is a regression that was introduced in #15527.

This patch is for the 2.3 branch. For 2.6 and later, the test can be updated to use the getCatalogue() method instead of using ReflectionProperty.

Commits
-------

f7f82fa [Translation] Add resources from fallback locale
2016-01-31 08:53:09 +01:00
Fabien Potencier
9cdb2074ce minor #17620 [FrameworkBundle] fix container cache key generation (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] fix container cache key generation

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

If the actual class name were not taken into, we would not be able to
detect inconsistencies between the different configuration formats (PHP,
YAML, and XML) as the container built based on the first evaluated
configuration format would be cached and reused by tests for the other
formats too.

Commits
-------

29750e5 fix container cache key generation
2016-01-31 08:38:33 +01:00
Fabien Potencier
6232b23591 minor #17617 [Form] fix option name in upgrade file (xabbuh)
This PR was merged into the 2.8 branch.

Discussion
----------

[Form] fix option name in upgrade file

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

Commits
-------

0efb137 [Form] fix option name in upgrade file
2016-01-31 08:33:49 +01:00
Fabien Potencier
aadd4b6ed4 minor #17616 [Form] fix option name in changelog (xabbuh)
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] fix option name in changelog

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

Commits
-------

0c4b636 [Form] fix option name in changelog
2016-01-31 08:33:25 +01:00
Christian Flothmann
29750e51ad fix container cache key generation
If the actual class name were not taken into, we would not be able to
detect inconsistencies between the different configuration formats (PHP,
YAML, and XML) as the container built based on the first evaluated
configuration format would be cached and reused by tests for the other
formats too.
2016-01-30 22:24:39 +01:00
Christian Flothmann
0efb137492 [Form] fix option name in upgrade file 2016-01-30 21:06:33 +01:00
Christian Flothmann
0c4b636c24 [Form] fix option name in changelog 2016-01-30 21:05:11 +01:00
Fabien Potencier
b6767c23dd Merge branch '2.8' into 3.0
* 2.8:
  [2.7] Fix tests
  pass triggerDeprecationError arg to parent class
  remove default null value for asset version
  remove duplicated value
  [Ldap] Remove unused private property
  Update UPGRADE-3.0 with correct Voter details
  Change few occurences of a public setUp() method to protected
  [DependencyInjection] simplify the BC layer
  Change couple of occurences of a public setUp() method to protected
2016-01-30 17:03:33 +01:00
Fabien Potencier
8a95ec5303 Merge branch '2.7' into 2.8
* 2.7:
  [2.7] Fix tests
  pass triggerDeprecationError arg to parent class
  remove default null value for asset version
  remove duplicated value
  [DependencyInjection] simplify the BC layer
  Change couple of occurences of a public setUp() method to protected
2016-01-30 16:58:35 +01:00
Fabien Potencier
8c0b48f6ca bug #17605 [FrameworkBundle] remove default null value for asset version (xabbuh)
This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] remove default null value for asset version

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

Setting `null` as the version of a package means that it uses the empty
version strategy. However, omitting the `version` option entirely was
meant to fall back to the default version strategy. This is not possible
when the default version value is `null` as there is no way to remove
it.

Commits
-------

25f735f remove default null value for asset version
2016-01-30 16:54:06 +01:00
Fabien Potencier
bd7f4d6b22 minor #17582 [2.7] Fix tests (paradajozsef)
This PR was squashed before being merged into the 2.7 branch (closes #17582).

Discussion
----------

[2.7] Fix tests

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | Let's see Travis results
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

c8e1384 [2.7] Fix tests
2016-01-30 16:53:21 +01:00
Paráda József
c8e1384b84 [2.7] Fix tests 2016-01-30 16:53:18 +01:00
Fabien Potencier
12bee17ffc bug #17606 [DependencyInjection] pass triggerDeprecationError arg to parent class (xabbuh)
This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] pass triggerDeprecationError arg to parent class

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/17565#discussion_r51100525
| License       | MIT
| Doc PR        |

Commits
-------

350625d pass triggerDeprecationError arg to parent class
2016-01-30 09:55:49 +01:00
Christian Flothmann
350625dd21 pass triggerDeprecationError arg to parent class 2016-01-30 09:46:07 +01:00
Christian Flothmann
25f735f78a remove default null value for asset version
Setting `null` as the version of a package means that it uses the empty
version strategy. However, omitting the `version` option entirely was
meant to fall back to the default version strategy. This is not possible
when the default version value is `null` as there is no way to remove
it.
2016-01-30 09:02:28 +01:00
Fabien Potencier
b6a8ed6bb6 minor #17604 [2.7] [2.8] [3.0] [minor fix] remove duplicated value (HeahDude)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] [2.8] [3.0] [minor fix] remove duplicated value

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

Commits
-------

d15c34a remove duplicated value
2016-01-29 18:33:07 +01:00
Jules Pietri
d15c34a51f remove duplicated value 2016-01-29 17:58:49 +01:00
Javier Eguiluz
cb1a921bb9 Fixed the Bootstrap form theme for inlined checkbox/radio 2016-01-29 13:24:08 +01:00
Fabien Potencier
8f3c06bb14 minor #17583 Introduce 3.1 and 4.0 upgrade files (xabbuh)
This PR was merged into the 3.1-dev branch.

Discussion
----------

Introduce 3.1 and 4.0 upgrade files

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

Commits
-------

f68e94a introduce 3.1 and 4.0 upgrade files
2016-01-29 09:15:08 +01:00
Christian Schmidt
f7f82fa4f2 [Translation] Add resources from fallback locale 2016-01-28 23:38:57 +01:00
Christian Flothmann
f68e94a8cf introduce 3.1 and 4.0 upgrade files 2016-01-28 11:23:27 +01:00
Fabien Potencier
5dd453fa26 minor #17581 [Ldap] Remove unused private property (paradajozsef)
This PR was merged into the 2.8 branch.

Discussion
----------

[Ldap] Remove unused private property

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

Commits
-------

e685305 [Ldap] Remove unused private property
2016-01-28 09:49:36 +01:00
Fabien Potencier
2c43532376 bug #16956 [DependencyInjection] XmlFileLoader: enforce tags to have a name (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] XmlFileLoader: enforce tags to have a name

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

Commits
-------

d86a3a7 [DependencyInjection] enforce tags to have a name
2016-01-28 08:04:25 +01:00
Paráda József
e685305292 [Ldap] Remove unused private property 2016-01-27 23:49:30 +01:00
Christian Flothmann
d86a3a7ba3 [DependencyInjection] enforce tags to have a name 2016-01-27 23:29:55 +01:00
Fabien Potencier
0005c560ec minor #17576 [YAML] Refine the return value of Yaml::parse() (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[YAML] Refine the return value of Yaml::parse()

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

Commits
-------

6a806e3 [YAML] Refine the return value of Yaml::parse()
2016-01-27 17:58:40 +01:00
Jakub Zalas
6a806e32b7 [YAML] Refine the return value of Yaml::parse() 2016-01-27 16:53:33 +00:00
Fabien Potencier
5f5f4aa4cf minor #17507 Update UPGRADE-3.0 with correct Voter details (jbafford)
This PR was merged into the 2.8 branch.

Discussion
----------

Update UPGRADE-3.0 with correct Voter details

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

AbstractVoter was removed, but the upgrade instructions to use Voter were not complete and continued to reference AbstractVoter.

Commits
-------

7b2a538 Update UPGRADE-3.0 with correct Voter details
2016-01-27 17:22:37 +01:00
John Bafford
7b2a538236 Update UPGRADE-3.0 with correct Voter details
AbstractVoter was removed, but the upgrade instructions to use Voter were not complete and continued to reference AbstractVoter.
2016-01-27 11:13:44 -05:00
Fabien Potencier
5d3d913404 minor #17567 Change few occurences of a public setUp() method to protected (jakzal)
This PR was merged into the 2.8 branch.

Discussion
----------

Change few occurences of a public setUp() method to protected

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

#17566 for the 2.8 branch. Occurrences fixed in #17566 are not included here.

Commits
-------

0a883a9 Change few occurences of a public setUp() method to protected
2016-01-27 16:33:51 +01:00
Fabien Potencier
528572b764 minor #17565 [DependencyInjection] simplify the BC layer (xabbuh)
This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] simplify the BC layer

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

The change to the `setFactoryService()` method is consistent with what
we did with the `getFactoryService()` before (and how we handle the
deprecation of strict references in Symfony 2.8).

Commits
-------

6cd5ee3 [DependencyInjection] simplify the BC layer
2016-01-27 16:32:31 +01:00
Fabien Potencier
5b5970364e minor #17564 [Serializer] Use ::class in new tests (dunglas)
This PR was merged into the 3.1-dev branch.

Discussion
----------

[Serializer] Use ::class in new tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/17446#discussion_r50965366
| License       | MIT
| Doc PR        | n/a

Commits
-------

48e8041 [Serializer] Use ::class in new tests
2016-01-27 16:30:34 +01:00
Fabien Potencier
7a965781b0 minor #17570 Change few occurences of a public setUp() method to protected (dunglas)
This PR was merged into the 3.1-dev branch.

Discussion
----------

Change few occurences of a public setUp() method to protected

| 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

A new rule for fabbot.io 😊?

Commits
-------

31696b7 Change few occurences of a public setUp() method to protected
2016-01-27 16:25:00 +01:00
Fabien Potencier
2ef46b311b minor #17566 Change couple of occurences of a public setUp() method to protected (jakzal)
This PR was merged into the 2.7 branch.

Discussion
----------

Change couple of occurences of a public setUp() method to protected

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

`setUp()` is a protected method. There's no occurrences on the 2.3 branch.

Commits
-------

5fe7359 Change couple of occurences of a public setUp() method to protected
2016-01-27 16:22:58 +01:00
Kévin Dunglas
31696b7e98 Change few occurences of a public setUp() method to protected 2016-01-27 13:43:54 +01:00
Jakub Zalas
0a883a94f1 Change few occurences of a public setUp() method to protected 2016-01-27 11:49:43 +00:00
Christian Flothmann
6cd5ee3b26 [DependencyInjection] simplify the BC layer
The change to the `setFactoryService()` method is consistent with what
we did with the `getFactoryService()` before (and how we handle the
deprecation of strict references in Symfony 2.8).
2016-01-27 12:47:27 +01:00
Jakub Zalas
5fe7359659 Change couple of occurences of a public setUp() method to protected 2016-01-27 11:47:13 +00:00
Christian Flothmann
5b30cb7371 [DependencyInjection] fix merge
Remove code from bugfix that deals with features removed in Symfony 3.0.
2016-01-27 12:37:34 +01:00
Christian Flothmann
f204104c3b Merge branch '2.8' into 3.0
* 2.8:
  fixed CS
  [BrowserKit] Corrected HTTP_HOST logic #15398
  Fixed HTTP Digest auth not being passed user checker
  resolve aliases in factories
  resolve aliases in factory services
  Remove invalid CSS white-space value
  Fix FileSystem tests on Windows
  [Form] ArrayChoiceList can now deal with a null in choices
2016-01-27 12:34:55 +01:00
Christian Flothmann
c8d28b1fa6 Merge branch '2.7' into 2.8
* 2.7:
  fixed CS
  [BrowserKit] Corrected HTTP_HOST logic #15398
  resolve aliases in factories
  resolve aliases in factory services
  Remove invalid CSS white-space value
  Fix FileSystem tests on Windows
  [Form] ArrayChoiceList can now deal with a null in choices
2016-01-27 12:34:40 +01:00
Christian Flothmann
3a027badb7 Merge branch '2.3' into 2.7
* 2.3:
  fixed CS
  [BrowserKit] Corrected HTTP_HOST logic #15398
  resolve aliases in factory services
  Remove invalid CSS white-space value
  Fix FileSystem tests on Windows
2016-01-27 12:27:15 +01:00
Kévin Dunglas
48e8041611 [Serializer] Use ::class in new tests 2016-01-27 12:24:42 +01:00
Fabien Potencier
4f26a2e6e5 feature #14288 [Console] Add getters for Application::$autoExit and $catchExceptions (VasekPurchart)
This PR was submitted for the 2.7 branch but it was merged into the 3.1-dev branch instead (closes #14288).

Discussion
----------

[Console] Add getters for Application::$autoExit and $catchExceptions

There is currently no way to retrieve this information from Application (afaik) and since this can be set from outside (and is even part of the `@api`) it should be retrievable.

This might come handy for example when working with an Application instance inside your code - for example when creating a Console exception listener - then you need information about how the application was run.

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

Commits
-------

5d191d3 [Console] Add getters for Application:: and
2016-01-27 12:22:59 +01:00