Commit Graph

20691 Commits

Author SHA1 Message Date
Fabien Potencier
052735d948 minor #14005 CS: Convert double quotes to single quotes (keradus)
This PR was merged into the 2.3 branch.

Discussion
----------

CS: Convert double quotes to single quotes

| 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

Changes generated automatically by upcoming PHP CS Fixer.
To keep fabbot.io happy ;)

Commits
-------

f99c22c CS: Convert double quotes to single quotes
2015-03-22 17:41:17 +01:00
Fabien Potencier
d10cdd64f1 minor #13985 [SecurityBundle] UserPasswordEncoderCommand: fix help arguments order. (ogizanagi)
This PR was merged into the 2.7 branch.

Discussion
----------

[SecurityBundle] UserPasswordEncoderCommand: fix help arguments order.

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

A very small fix about the newly introduced command to encode a user password (#12818).
The help message states the command looks like:
```
security:encode-password [password] [salt] [user-class]
```

but is the following instead:
```
security:encode-password [password] [user-class] [salt]
```

Commits
-------

0a5b1b9 [SecurityBundle] UserPasswordEncoderCommand: fix help arguments order.
2015-03-22 17:26:54 +01:00
Christophe Coevoet
9438206c25 Complete the removal of API versions in the validator component
Thanks to the PHP version requirement bump to 5.3.9+, the BC layer can
be available all the time.
2015-03-22 16:48:52 +01:00
Fabien Potencier
75088c0adc [Validator] deprecated API version 2015-03-22 16:22:03 +01:00
sarah khalil
0c69f6927f Removed 2.5 bc layer 2015-03-22 16:19:12 +01:00
ogizanagi
0a5b1b9190 [SecurityBundle] UserPasswordEncoderCommand: fix help arguments order.
Re-arrange the arguments order given in the command help message to the
proper one by swapping [user-class] and [salt].
2015-03-22 11:41:52 +01:00
Abdellatif Ait boudad
0f9eb7a79d [FrameworkBundle][debug:config] added support for dynamic configurations. 2015-03-22 10:17:36 +00:00
Jakub Zalas
b6af00292d [DomCrawler] Improve namespace discovery performance
Up until now xpath axes (child::*, descendant-or-self::** etc) were considered namespaces.
As a result, far too many xpath queries were being executed while namespace discovery.
2015-03-21 23:00:29 +00:00
Abdellatif Ait boudad
e36f1a70e1 [FrameworkBundle][Translation][debug mode] refresh cache when resources is changed. 2015-03-21 21:32:48 +00:00
Fabien Potencier
9f77776345 bug #13997 [2.3+][Form][DoctrineBridge] Improved loading of entities and documents (guilhermeblanco)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3+][Form][DoctrineBridge] Improved loading of entities and documents

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

Commits
-------

529d99c Fixed MongoODM entity loader. Improved loading behavior of entities and documents by reusing entity loader.
2015-03-21 18:54:04 +01:00
Fabien Potencier
6ef3b54ad3 minor #13999 Fix small coding style (nunorafaelrocha)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #13999).

Discussion
----------

Fix small coding style

[Component] [Translation] [Tests] [PluralizationRulesTest.php] Remove extra space from `PluralizationRulesTest` class declaration.

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

Commits
-------

7d0bd63 Fix small coding style
2015-03-21 18:53:24 +01:00
Nuno Rafael Rocha
7d0bd63df5 Fix small coding style
Remove extra space from `PluralizationRulesTest` class declaration.
2015-03-21 18:53:24 +01:00
Fabien Potencier
d1131dbf93 feature #14000 [SECURITY][ACL] fixed Base ACL exceptions on the RuntimeException (Neophy7e)
This PR was submitted for the 2.3 branch but it was merged into the 2.7 branch instead (closes #14000).

Discussion
----------

[SECURITY][ACL] fixed Base ACL exceptions on the RuntimeException

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

As said in the ticket issue #13154 "change to \RuntimeException, as this is a more detailed exception, giving users the opportunity to deal with the exceptions in a cleaner way (easier distinguish between runtime and logic exceptions for one)"

Commits
-------

9dcae6b [SECURITY][ACL] fixed Base ACL exceptions on the RuntimeException
2015-03-21 18:52:07 +01:00
Neophy7e
9dcae6bf62 [SECURITY][ACL] fixed Base ACL exceptions on the RuntimeException 2015-03-21 18:52:06 +01:00
Fabien Potencier
a3dc823983 feature #14001 [2.7] [Security] [ACL] Improved MaskBuilder and PermissionMap (AlexDpy)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] [Security] [ACL] Improved MaskBuilder and PermissionMap

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |  #13566
| License       | MIT
| Doc PR        | I'll do it if needed

This PR refers to #13697 . The previous PR introduced a BC break, so i provide this one which is backward compatible.

The MaskBuilderRetrievalInterface::getMaskBuilder methods allows us to retrieve a new instance of the MaskBuilder used in our application, even if it's a custom one.
I also added a MaskBuilderInterface and an AbstractMaskBuilder which can be a great helper.

Commits
-------

3d79d8b added MaskBuilderRetrievalInterface
89a1f2a improved MaskBuilder
2015-03-21 18:50:37 +01:00
Fabien Potencier
32964969d7 minor #13995 [2.3] Static Code Analysis for Components (kalessil)
This PR was squashed before being merged into the 2.3 branch (closes #13995).

Discussion
----------

[2.3] Static Code Analysis for Components

| 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

Static Code Analysis with Php Inspections (EA Extended), no functional changes:
- [Filesystem] : nested ifs, not optimal ifs
- in_array() miss-uses
- class re-implements an interface of super(s)
- array_keys/array_values as foreach array - fixed cases where changes has sense

Commits
-------

4abfabf [2.3] Static Code Analysis for Components
2015-03-21 18:48:07 +01:00
Vladimir Reznichenko
4abfabf8da [2.3] Static Code Analysis for Components 2015-03-21 18:48:06 +01:00
Fabien Potencier
c73c34acaf minor #13993 [Form] fixed doc (issei-m)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #13993).

Discussion
----------

[Form] fixed doc

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

Commits
-------

9c55731 [Form] fixed phpdoc
2015-03-21 18:46:19 +01:00
Issei.M
9c557312f2 [Form] fixed phpdoc 2015-03-21 18:46:18 +01:00
Fabien Potencier
49c60d7383 bug #13978 [WebProfilerBundle] Fix javascript toolbar on IE8 (romainneutron)
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Fix javascript toolbar on IE8

| 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

 - `Array.prototype.slice.call(tbody.children);` called on HTMLCollection throws an error on IE8
 - `XMLHttpRequest` has no event handler on IE8
 - `document.getElementsByClassName` does not exist on IE8

Commits
-------

cbd89f5 [WebProfilerBundle] Fix javascript toolbar on IE8
2015-03-21 18:45:41 +01:00
Fabien Potencier
32da963472 bug #13987 [WebProfilerBundle] fixed undefined buttons variable. (aitboudad)
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] fixed undefined buttons variable.

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

Commits
-------

a8c4da1 [WebProfilerBundle] fixed undefined buttons.
2015-03-21 18:44:13 +01:00
Nicolas Grekas
8443268655 [VarDumper] collapse/inline cut structures 2015-03-21 15:33:29 +01:00
Dariusz Ruminski
f99c22c08a CS: Convert double quotes to single quotes 2015-03-21 12:11:30 +01:00
Nicolas Grekas
ce8d3716a2 feature #13959 [VarDumper] Add catch-all-objects hook for casters (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] Add catch-all-objects hook for casters

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

Allows to create generic casters for any type of objects

Commits
-------

5999964 [VarDumper] Add catch-all-objects hook for casters
2015-03-21 11:55:00 +01:00
Alexandre Dupuy
3d79d8b438 added MaskBuilderRetrievalInterface 2015-03-20 23:35:10 +01:00
Alexandre Dupuy
89a1f2a94e improved MaskBuilder 2015-03-20 23:18:31 +01:00
Guilherme Blanco
529d99c567 Fixed MongoODM entity loader. Improved loading behavior of entities and documents by reusing entity loader. 2015-03-20 20:23:02 +00:00
Fabien Potencier
d5a8a1009b minor #13992 [Validator] added Japanese translation for unmatched charset (id: 80) (issei-m)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #13992).

Discussion
----------

[Validator] added Japanese translation for unmatched charset (id: 80)

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

Commits
-------

0ada9e4 [Validator] added Japanese translation for unmatched charset (id: 80)
2015-03-20 16:04:39 +01:00
Issei.M
0ada9e4c16 [Validator] added Japanese translation for unmatched charset (id: 80) 2015-03-20 16:04:18 +01:00
Nicolas Grekas
00701cba8d [VarDumper] Add Caster for XML-parser resources 2015-03-20 14:43:24 +01:00
Nicolas Grekas
2d2cd84783 feature #13980 [VarDumper] Added support for amqp (lyrixx)
This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] Added support for amqp

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

![screenshot3](https://cloud.githubusercontent.com/assets/408368/6736802/5bcb2cfe-ce67-11e4-8bce-a5ca5f98239f.png)

Commits
-------

5fa063e [VarDumper] Added support for amqp
2015-03-20 14:28:57 +01:00
Samuel ROZE
648aacbc7c [FrameworkBundle] Allow to disable Kernel reboot 2015-03-20 11:50:15 +01:00
Abdellatif Ait boudad
a8c4da12b8 [WebProfilerBundle] fixed undefined buttons. 2015-03-20 09:01:52 +00:00
Romain Neutron
cbd89f5cd2 [WebProfilerBundle] Fix javascript toolbar on IE8 2015-03-19 22:02:30 +01:00
Fabien Potencier
bd0eaef28d bug #13953 [Translation][MoFileLoader] fixed load empty translation. (aitboudad)
This PR was merged into the 2.3 branch.

Discussion
----------

[Translation][MoFileLoader] fixed load empty translation.

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

see https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html

![selection_003](https://cloud.githubusercontent.com/assets/1753742/6690874/fcf04ef6-ccba-11e4-83a4-4f50188709c5.png)

Commits
-------

22f5a73 [Translation][MoFileLoader] fixed load empty translation.
2015-03-19 19:49:28 +01:00
Fabien Potencier
fa11c0637e feature #12818 [2.7][SecurityBundle] Added a command to encode a password (saro0h)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][SecurityBundle] Added a command to encode a password

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

- [x] Give some love to the UI (need your feedbacks)
- [x] Write tests
- [x] Write documentation

-------------------------------------------------------

The encoder got depend directly from the configuration of the user class in the security.yml.
So the user choose the user type, and, using the method `getEncoder($user)` of the `security.encoder_factory` service, I get the right encoder configured.

*Here is the output for `security:encode-password`*:
![capture d ecran 2015-01-01 a 19 48 07](https://cloud.githubusercontent.com/assets/667519/5593008/3af45686-91ef-11e4-8024-e66a2e000fbe.png)

Commits
-------

a7bd0fc Added a command to encode a password
2015-03-19 19:20:49 +01:00
Grégoire Pineau
5fa063e63d [VarDumper] Added support for amqp 2015-03-19 18:42:42 +01:00
Fabien Potencier
3f0fd7ca99 minor #13966 [FrameworkBundle] Remove asset from require-dev (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Remove asset from require-dev

| 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

Not needed because already in `require`.

Commits
-------

3a29bb6 [FrameworkBundle] Remove asset from require-dev
2015-03-19 17:25:15 +01:00
Fabien Potencier
d2007bfcd5 bug #13912 [DependencyInjection] Highest precedence for user parameters (lyrixx)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] Highest precedence for user parameters

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

If `router.request_context.host` is defined in `parameters.yml` and if this
key is used in `globals` section of twig bundle then the value registered in the
DIC/parameters is the default value (`localhost`).

It occurs because generally the framework bundle is defined before the twig
bundle. So after the first loop, the (user) value registered in the
`ContainerBuilder` is overridden by the default value of the framework bundle.
And so, when it comes the time to process twig bundle, the last one gets the
default value, and not the user value.

This patch force the merge of default value, but give an highest precedence of
user parameters for each extensions.

Commits
-------

ce2764d [DependencyInjection] Highest precedence for user parameters
2015-03-19 17:11:28 +01:00
Jesper Pedersen
c5f1f60981 [WebProfiler] Fix partial search on url in list 2015-03-19 10:54:07 +01:00
Kévin Dunglas
043b8fe955 bug #13968 [FrameworkBundle] Fix regression introduced by #13107 (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Fix regression introduced by #13107

| 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

I've introduced a bug in 83b56f60d0. An error will be throw if the serializer is enabled but no cache is set.

This is the fix.

Commits
-------

efadac0 [FrameworkBundle] Fix regression introduced by #13107
2015-03-19 10:31:11 +01:00
Kévin Dunglas
efadac065c [FrameworkBundle] Fix regression introduced by #13107 2015-03-18 22:58:41 +01:00
Kévin Dunglas
3a29bb65f5 [FrameworkBundle] Remove asset from require-dev 2015-03-18 21:25:10 +01:00
Fabien Potencier
74ec8953c6 feature #13107 [FrameworkBundle] Serializer groups support (dunglas)
This PR was squashed before being merged into the 2.7 branch (closes #13107).

Discussion
----------

[FrameworkBundle] Serializer groups support

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

This PR enables serializer groups in the full stack framework (including XML, YAML, annotations and caching).

Commits
-------

83b56f6 [FrameworkBundle] Serializer groups support
2015-03-18 19:12:38 +01:00
Kévin Dunglas
83b56f60d0 [FrameworkBundle] Serializer groups support 2015-03-18 19:11:46 +01:00
Martin Hasoň
0eb34f326b [DependencyInjection] Added support for keys "method" and "arguments" in "calls" statement for yaml format 2015-03-18 12:09:21 +01:00
Grégoire Pineau
ce2764d416 [DependencyInjection] Highest precedence for user parameters
If `router.request_context.host` is defined in `parameters.yml` and if this
key is used in `globals` section of twig bundle then the value registered in the
DIC/parameters is the default value (`localhost`).

It occurs because generall the framework bundle is defined before the twig
bundle. So after the first loop, the (user) value registered in the
`ContainerBuilder` is overridden by the default value of the framework bundle.
And so, when it comes the time to process twig bundle, the last one gets the
default value, and not the user value.

This patch force the merge of default value, but give an highest precedence of
user parameters for each extensions.
2015-03-18 10:30:04 +01:00
Nicolas Grekas
5999964151 [VarDumper] Add catch-all-objects hook for casters 2015-03-18 09:41:21 +01:00
Saro0h
a7bd0fc98d Added a command to encode a password 2015-03-17 23:11:01 +01:00
Fabien Potencier
d64cb493af bumped Symfony version to 2.6.6 2015-03-17 16:51:12 +01:00