Commit Graph

5676 Commits

Author SHA1 Message Date
Nicolas Grekas
a86a41940a Merge branch '2.6' into 2.7
* 2.6:
  [VarDumper] Fix dumping references as properties
  [VarDumper] Fix toggle action to see source excerpt
2015-03-31 10:26:01 +02:00
Nicolas Grekas
10f713385e [VarDumper] Fix toggle action to see source excerpt 2015-03-31 10:08:51 +02:00
Abdellatif Ait boudad
c923b2ab88 [Translation][Profiler] Added a Translation profiler. 2015-03-30 11:48:49 +01:00
Fabien Potencier
8bee26f27a bug #14061 [WebProfilerBundle] Fixed collapsed profiler menu icons (1ed)
This PR was merged into the 2.7 branch.

Discussion
----------

[WebProfilerBundle] Fixed collapsed profiler menu icons

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

Added missing CSS and JS modifications from #13463

Commits
-------

51223d2 [WebProfilerBundle] Fixed collapsed profiler menu icons
2015-03-27 13:08:23 +01:00
Fabien Potencier
eccfbe35a4 Merge branch '2.6' into 2.7
* 2.6:
  CS: fixes
  Translator component has default domain for null implemented no need to have default translation domain logic in 3 different places
  [Form] [TwigBridge] Bootstrap layout whitespace control
  [travis] Kill tests when a new commit has been pushed
  fixed CS
  Change behavior to mirror hash_equals() returning early if there is a length mismatch
  CS fixing
  Prevent modifying secrets as much as possible
  Update StringUtils.php
  Whitespace
  Update StringUtils.php
  StringUtils::equals() arguments in RememberMe Cookie based implementation are confused
  CS: general fixes
  [SecurityBundle] removed a duplicated service definition and simplified others.

Conflicts:
	src/Symfony/Bundle/SecurityBundle/Resources/config/security_listeners.xml
2015-03-27 11:22:45 +01:00
Fabien Potencier
33abe5c6d6 Merge branch '2.3' into 2.6
* 2.3:
  CS: fixes
  Translator component has default domain for null implemented no need to have default translation domain logic in 3 different places
  [travis] Kill tests when a new commit has been pushed
  fixed CS
  Change behavior to mirror hash_equals() returning early if there is a length mismatch
  CS fixing
  Prevent modifying secrets as much as possible
  Update StringUtils.php
  Whitespace
  Update StringUtils.php
  CS: general fixes
  [SecurityBundle] removed a duplicated service definition and simplified others.

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_collapsed.html.php
	src/Symfony/Bundle/SecurityBundle/Resources/config/security_rememberme.xml
	src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php
	src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services11.php
2015-03-27 11:19:51 +01:00
Fabien Potencier
b910e0621a feature #14002 [Translation][Extractor] Allow extracting an array of files besides extracting a directory (marcosdsanchez)
This PR was squashed before being merged into the 2.7 branch (closes #14002).

Discussion
----------

[Translation][Extractor] Allow extracting an array of files besides extracting a directory

| 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

Give ability to extractors to extract from an array of files a file, or a Traversable besides a directory.

The following commit adds the new feature to the following extractors:
PhpExtractor and TwigExtractor.
It also corrects the interface documentation to show the new options allowed as a parameter.

I found this change useful as I've got a custom translation:update command that instead of extracting from $rootPath. '/Resources/views/' it extracts from the files that git is showing as modified. The command usually runs much faster than the default as it only parses the needed files.

Commits
-------

9d6596c [Translation][Extractor] Allow extracting an array of files besides extracting a directory
2015-03-27 07:53:17 +01:00
Marcos Sánchez
9d6596c69b [Translation][Extractor] Allow extracting an array of files besides extracting a directory 2015-03-27 07:53:09 +01:00
Matthieu Auger
a5628bdbe2 Displays friendly message if the event does not have any registered listeners 2015-03-26 13:59:20 +01:00
Gábor Egyed
51223d28c6 [WebProfilerBundle] Fixed collapsed profiler menu icons 2015-03-25 22:46:51 +01:00
Fabien Potencier
c1c648e3d9 minor #14031 [2.3] [SecurityBundle] removed a duplicated service definition and simplified others. (hhamon)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] [SecurityBundle] removed a duplicated service definition and simplified others.

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

Commits
-------

f24c8ab [SecurityBundle] removed a duplicated service definition and simplified others.
2015-03-25 20:42:31 +01:00
Dariusz Ruminski
063ae13fde CS: general fixes 2015-03-25 00:47:08 +01:00
Tobias Schultze
78b1a6803a fix typo 2015-03-24 18:40:46 +01:00
Fabien Potencier
26ff514323 Merge branch '2.6' into 2.7
* 2.6:
  CS: fix some license headers
  CS: Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline
  use visited lookup with reference to gain performance
  Replace GET parameters when changed
  [FrameworkBundle][debug:config] added support for dynamic configurations.
  [WebProfiler] Fix partial search on url in list

Conflicts:
	src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php
	src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php
2015-03-24 18:00:58 +01:00
Fabien Potencier
2559628654 Merge branch '2.3' into 2.6
* 2.3:
  CS: fix some license headers
  CS: Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline
  use visited lookup with reference to gain performance
  Replace GET parameters when changed

Conflicts:
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
2015-03-24 18:00:37 +01:00
Dariusz Ruminski
6a16d917fe CS: Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline 2015-03-24 17:36:00 +01:00
Joseph Bielawski
156cda64f6 [SecurityBundle] Fix typos in LogoutUrlHelper 2015-03-24 10:56:45 +01:00
Hugo Hamon
f24c8ab844 [SecurityBundle] removed a duplicated service definition and simplified others. 2015-03-23 23:38:21 +01:00
Abdellatif Ait boudad
aa70a94146 [Translation] keep old array structure of resourcesFiles to avoid BC. 2015-03-23 11:10:33 +00:00
Fabien Potencier
f5a020e275 feature #14016 Remove the API version in the validator component (saro0h, fabpot, stof)
This PR was merged into the 2.7 branch.

Discussion
----------

  Remove the API version in the validator component

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

This completes the work of #13517

Commits
-------

9438206 Complete the removal of API versions in the validator component
75088c0 [Validator] deprecated API version
0c69f69 Removed 2.5 bc layer
2015-03-23 09:58:54 +01:00
Fabien Potencier
39da732eb0 bug #13886 [FrameworkBundle][debug:config] added support for dynamic configurations... (aitboudad)
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle][debug:config] added support for dynamic configurations...

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

Commits
-------

0f9eb7a [FrameworkBundle][debug:config] added support for dynamic configurations.
2015-03-23 09:38:04 +01:00
Fabien Potencier
eda1ab7841 minor #13971 [WebProfiler] Fix partial search on url in list (zerrvox)
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfiler] Fix partial search on url in list

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

Removed the url type from the url form field as browser validation makes it impossible to do partial text search on the url as the browser will not submit the form because it does not validate as a url.

Commits
-------

c5f1f60 [WebProfiler] Fix partial search on url in list
2015-03-23 09:31:13 +01:00
Fabien Potencier
e99c09e5ed minor #14011 [Translation][debug mode] refresh cache when resources is changed. (aitboudad)
This PR was merged into the 2.7 branch.

Discussion
----------

[Translation][debug mode] refresh cache when resources is changed.

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

Commits
-------

e36f1a7 [FrameworkBundle][Translation][debug mode] refresh cache when resources is changed.
2015-03-23 09:26:36 +01:00
Fabien Potencier
707f3d332e tweaked phpdocs 2015-03-23 09:23:11 +01:00
Fabien Potencier
7e9466265c feature #13937 [FrameworkBundle] Allow to disable Kernel reboot (sroze)
This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Allow to disable Kernel reboot

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

This PR introduce a `disableReboot` method on `Client` class.

A use case of this method is to prevent rebooting kernel if we manually rebooted it before the request to manipulate registered services.

Commits
-------

648aacb [FrameworkBundle] Allow to disable Kernel reboot
2015-03-23 09:21:29 +01:00
Matt Robinson
d9b2500a20 Improve entropy of generated salt
Using a hash as a salt provides unnecessarily low entropy, especially when using Symfony's recommended password encoder (bcrypt) which truncates salt at 22 chars, giving only 16^22 bits entropy. Using base64 instead provides _up to_ 256^30 bits (256^16 to bcrypt).

This change doesn't break compatibility with the built-in PasswordEncoderInterface implementations (message-digest, pbkdf2, bcrypt, plaintext), but it _might_ not work with some custom encoders if they've been assuming hexit salts. On balance I think it's fine since the commit this patches was only merged a few hours ago :D
2015-03-22 21:27:19 +00:00
Fabien Potencier
6b02541880 Merge branch '2.6' into 2.7
* 2.6:
  Fix small coding style
  [2.3] Static Code Analysis for Components
  [Form] fixed phpdoc
  CS: Convert double quotes to single quotes
  Fixed MongoODM entity loader. Improved loading behavior of entities and documents by reusing entity loader.
  [Validator] added Japanese translation for unmatched charset (id: 80)
  [WebProfilerBundle] fixed undefined buttons.
  [WebProfilerBundle] Fix javascript toolbar on IE8
  [DependencyInjection] Highest precedence for user parameters
  bumped Symfony version to 2.6.6
  [Translation][MoFileLoader] fixed load empty translation.
  updated VERSION for 2.6.5
  updated CHANGELOG for 2.6.5
  bumped Symfony version to 2.3.27
  updated VERSION for 2.3.26
  update CONTRIBUTORS for 2.3.26
  updated CHANGELOG for 2.3.26
  [HttpKernel] UriSigner::buildUrl - default params for http_build_query

Conflicts:
	src/Symfony/Bridge/Propel1/Tests/DataCollector/PropelDataCollectorTest.php
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/HttpKernel/Kernel.php
	src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
	src/Symfony/Component/Validator/Resources/translations/validators.ja.xlf
2015-03-22 17:57:18 +01:00
Fabien Potencier
618b7dcfb8 Merge branch '2.3' into 2.6
* 2.3:
  Fix small coding style
  [2.3] Static Code Analysis for Components
  [Form] fixed phpdoc
  CS: Convert double quotes to single quotes
  Fixed MongoODM entity loader. Improved loading behavior of entities and documents by reusing entity loader.
  [Validator] added Japanese translation for unmatched charset (id: 80)
  [DependencyInjection] Highest precedence for user parameters
  [Translation][MoFileLoader] fixed load empty translation.
  bumped Symfony version to 2.3.27
  updated VERSION for 2.3.26
  update CONTRIBUTORS for 2.3.26
  updated CHANGELOG for 2.3.26

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php
	src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
	src/Symfony/Bundle/TwigBundle/Command/LintCommand.php
	src/Symfony/Component/Config/Definition/ReferenceDumper.php
	src/Symfony/Component/Debug/ExceptionHandler.php
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php
	src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php
	src/Symfony/Component/Filesystem/Filesystem.php
	src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
	src/Symfony/Component/HttpKernel/Kernel.php
	src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
	src/Symfony/Component/Translation/PluralizationRules.php
	src/Symfony/Component/Validator/Constraints/IssnValidator.php
	src/Symfony/Component/Validator/Resources/translations/validators.ja.xlf
	src/Symfony/Component/Yaml/Tests/InlineTest.php
2015-03-22 17:55:57 +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
Abdellatif Ait boudad
e36f1a70e1 [FrameworkBundle][Translation][debug mode] refresh cache when resources is changed. 2015-03-21 21:32:48 +00: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
Dariusz Ruminski
f99c22c08a CS: Convert double quotes to single quotes 2015-03-21 12:11:30 +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
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
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
Jesper Pedersen
c5f1f60981 [WebProfiler] Fix partial search on url in list 2015-03-19 10:54:07 +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
Saro0h
a7bd0fc98d Added a command to encode a password 2015-03-17 23:11:01 +01:00
Fabien Potencier
a003380c39 Merge branch '2.6' into 2.7
* 2.6:
  [DependencyInjection] fixed service resolution for factories
  [acl][command][SecurityBundle] Fixed user input option mode to be an Array

Conflicts:
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
2015-03-14 06:33:51 +01:00
Fabien Potencier
b178ee57e3 feature #13872 [FrameworkBundle] Added domain column when debugging translations (hiddewie)
This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Added domain column when debugging translations

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

This is my first PR. If I do anything wrong, please let me know and I'll try to fix it.

## Possible TODO:
```
[ ] Update relevant documentation
```

## Explanation for the PR:
While editing a web application, I was changing a LOT of translation files. The debug:translation command helps a lot, but it is hard to find out in which domain the missing/unused translations are located. By adding an extra column with the name of the domain, I get more information about the translations in the table.

## New output:
```
+----------+------------+---------------------+----------------------+
| State(s) | Domain     | Id                  | Message Preview (nl) |
+----------+------------+---------------------+----------------------+
| x        | user_admin | user.iban.incorrect | user.iban.incorrect  |
+----------+------------+---------------------+----------------------+

Legend:
 x Missing message
 o Unused message
 = Same as the fallback message
```

Commits
-------

25ef76f [FrameworkBundle] Added domain column when debugging translations
2015-03-14 06:14:24 +01:00
Fabien Potencier
cc18a594e4 bug #13790 [acl][command][SecurityBundle] Fixed user input option mode to be an Array (benjaminlong)
This PR was merged into the 2.6 branch.

Discussion
----------

[acl][command][SecurityBundle] Fixed user input option mode to be an Array

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

User input option should always return an array, even if only one user is passed.

Commits
-------

bd17ef8 [acl][command][SecurityBundle] Fixed user input option mode to be an Array
2015-03-14 06:08:39 +01:00