Commit Graph

14416 Commits

Author SHA1 Message Date
Jakub Zalas
3f84cd398a [Templating] Made DelegatingEngine::getEngine() public. 2013-06-14 13:44:33 +01:00
Jakub Zalas
0a72a995ba [FrameworkBundle] Added tests for the DelegatingEngine. 2013-06-14 13:42:13 +01:00
Jakub Zalas
6c31ab2581 [Templating] Added tests for the DelegatingEngine. 2013-06-14 13:34:01 +01:00
Fabien Potencier
33469ea11b merged branch bamarni/fileupload-message (PR #8216)
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] UploadedFile error message

Allowed error message to be retrieved manually, currently it's only used for the exception thrown when trying to move it.

I've also removed the argument, as it's not a static method it's not needed imo.

Commits
-------

7ccfe65 [HttpFoundation] UploadedFile error message
2013-06-08 17:03:18 +02:00
Bilal Amarni
7ccfe655bd [HttpFoundation] UploadedFile error message 2013-06-06 17:05:59 +02:00
Fabien Potencier
ea913e07e5 merged branch GromNaN/templating-var (PR #7951)
This PR was squashed before being merged into the master branch (closes #7951).

Discussion
----------

[Templating] Allows "template" and "parameters" as parameter name (replaces #7908)

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

Allows "template" and "parameters" as parameter name.
**BC break:** These variables were previously declared on every template with respectively the Templating\Storage instance and the array of parameters.

Commits
-------

6e8b918 [Templating] Allows "template" and "parameters" as parameter name (replaces #7908)
2013-06-04 17:16:10 +02:00
Jerome TAMARELLE
6e8b9181ba [Templating] Allows "template" and "parameters" as parameter name (replaces #7908) 2013-06-04 17:16:08 +02:00
Fabien Potencier
5f16e996d5 merged branch alexpods/patch-3 (PR #8003)
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation][NamespacedAttributeBag] Refactoring of resolveKey() method

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

Just code enhancement. Low priority.

1) We don't need to call strlen($name) as last argument of substr() function
2) We don't need to call strrpos (or strpos) two times.

Commits
-------

a644516 [HttpFoundation][NamespacedAttributeBag] Refactoring of resolveKey() method
2013-06-04 17:12:29 +02:00
Fabien Potencier
a8929762bc merged branch lyrixx/console-tester-status-code (PR #8023)
This PR was merged into the master branch.

Discussion
----------

[2.4][Console] Added status code to CommandTester and ApplicationTester

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes, but not on travis (segfault)
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Theses classes are already statefull. They contain the input and the
output data. So we can safely add the last status code to the class.

Commits
-------

6526166 [Console] Added status code to CommandTester and ApplicationTester
2013-06-04 17:09:18 +02:00
Fabien Potencier
d8941c19c8 merged branch mpartel/progresshelper-clear (PR #8074)
This PR was merged into the master branch.

Discussion
----------

[Console] Add clear() to ProgressHelper.

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

One may want to print something else while the progress bar is running.
The output will be messy if the progress bar is not removed first.

One may also want to remove the progress bar after the work is complete.

Commits
-------

29c71a5 [Console] Add clear() to ProgressHelper.
2013-06-04 17:08:39 +02:00
Fabien Potencier
46b209bc55 merged branch Tobion/monolog-console-integration (PR #8167)
This PR was squashed before being merged into the master branch (closes #8167).

Discussion
----------

[MonologBridge] added integration with the console component

This adds integration with the console component by adding ConsoleHandler and ConsoleFormatter which can be used to show log messages in the console output depending on the verbosity settings.
This PR splits the reusable classes from symfony/MonologBundle#42 into the bridge.
It has been reviewed by @Seldaek

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8033
| License       | MIT
| Doc PR        | will be done when this is used by the MonologBundle

Commits
-------

c0b5996 [MonologBridge] added integration with the console component
2013-06-04 17:05:24 +02:00
Tobias Schultze
c0b59963b3 [MonologBridge] added integration with the console component 2013-06-04 17:05:23 +02:00
Fabien Potencier
f26c2b9deb Merge branch '2.3'
* 2.3:
  ErrorHandler and fixes
  fixed typo in CS translation (closes #8069)
  fix arab translation
  Removed reference to Symfony\Component\Form\Extension\Core\Type\FormType in form.xml
  slovenian validator translations updated
  [FrameworkBundle] set the dispatcher in the console application
  [Console] fix typehint for Application::setDispatcher
  [Finder] Fixed a path in a test.
  [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065)
2013-06-02 14:05:59 +02:00
Fabien Potencier
7fb9c25f8c Merge branch '2.2' into 2.3
* 2.2:
  fixed typo in CS translation (closes #8069)
  fix arab translation
  [Finder] Fixed a path in a test.
  [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065)
2013-06-02 14:05:51 +02:00
Fabien Potencier
afe18722d2 Merge branch '2.1' into 2.2
* 2.1:
  fixed typo in CS translation (closes #8069)
  [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065)

Conflicts:
	src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php
	src/Symfony/Component/Validator/Resources/translations/validators.cs.xlf
2013-06-02 14:05:41 +02:00
Fabien Potencier
49006b42a9 merged branch odi86/check-post-max-size-zero (PR #8149)
This PR was merged into the 2.1 branch.

Discussion
----------

[Form] [Validator] Fixed post_max_size = 0 bug (issue #8065)

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

Commits
-------

2038329 [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065)
2013-06-02 14:03:10 +02:00
Fabien Potencier
b9dadbbf21 merged branch uuf6429/master (PR #8170)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #8170).

Discussion
----------

ErrorHandler and $context fixes

Fixes a minor issue with optional parameters not being optional and added support for `ContextErrorException` class as detailed here: https://github.com/fabpot/Silex/issues/717

Commits
-------

784726d ErrorHandler and  fixes
2013-06-02 13:58:44 +02:00
Christian Sciberras
3db0360bd9 ErrorHandler and fixes 2013-06-02 13:58:44 +02:00
Fabien Potencier
6d55422fd0 fixed typo in CS translation (closes #8069) 2013-06-02 13:57:02 +02:00
Fabien Potencier
b677538205 merged branch bghazy/master (PR #8169)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #8169).

Discussion
----------

fix arab translation

fix arab translation

Commits
-------

e9051b3 fix arab translation
2013-05-31 16:46:43 +02:00
ghazy ben ahmed
009c50dd5b fix arab translation 2013-05-31 16:46:42 +02:00
Fabien Potencier
b5c9bb8e03 merged branch Tobion/console-dispatcher (PR #8158)
This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] set the dispatcher in the console application

BC break: no
test pass: yes

Otherwise events are not dispatched in symfony frameworkbundle.
The first commit fixes a related typehint in the console.

Commits
-------

e93fc7a [FrameworkBundle] set the dispatcher in the console application
176a3d4 [Console] fix typehint for Application::setDispatcher
2013-05-30 07:11:26 +02:00
Fabien Potencier
d14db588f5 merged branch iJanki/fix_field (PR #8159)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #8159).

Discussion
----------

[FrameworkBundle] Removed reference to FieldType in form.xml

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

Removed reference of deprecated FieldType class in FrameworkBundle form.xml configuragion.

Commits
-------

bd2e689 [FrameworkBundle] Removed reference to Symfony\Component\Form\Extension\Core\Type\FormType in form.xml
2013-05-29 10:49:10 +02:00
Daniele Cesarini
0bd9d2c849 Removed reference to Symfony\Component\Form\Extension\Core\Type\FormType in form.xml 2013-05-29 10:49:10 +02:00
Fabien Potencier
42b0fe4e35 merged branch peterkokot/translations-2.3 (PR #8160)
This PR was merged into the 2.3 branch.

Discussion
----------

slovenian validator translations updated

Slovenian validator component translations updated.

Commits
-------

35c6768 slovenian validator translations updated
2013-05-29 10:48:18 +02:00
peter
35c6768bb7 slovenian validator translations updated 2013-05-29 10:42:58 +02:00
Tobias Schultze
e93fc7a2c0 [FrameworkBundle] set the dispatcher in the console application
So events are really dispatched using the FrameworkBundle console application
2013-05-28 21:38:03 +02:00
Tobias Schultze
176a3d435e [Console] fix typehint for Application::setDispatcher 2013-05-28 21:36:15 +02:00
Fabien Potencier
afee664e8a merged branch jakzal/bugfix/finder-test (PR #8150)
This PR was merged into the 2.2 branch.

Discussion
----------

[Finder] Fixed a path in a test

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

Test case was introduced in 45b68e02bd.

It's probably better to be explicit rather than to rely on a path position in the array. Position in 2.1 was different than in the other branches.

Commits
-------

127f3bd [Finder] Fixed a path in a test.
2013-05-27 22:40:05 +02:00
Jakub Zalas
127f3bd500 [Finder] Fixed a path in a test.
Its probably better to be explicit rather than to rely on a path position in the array. Position has changed during a merge.
2013-05-27 21:26:32 +01:00
Fabien Potencier
e160ddb286 Merge branch '2.3'
* 2.3: (37 commits)
  [Console] renamed ConsoleForExceptionEvent into ConsoleExceptionEvent
  Fix several instances of doubled words
  [Security] Fixed the check if an interface exists.
  Added missing slovak translations
  [FrameworkBundle] removed HttpFoundation classes from HttpKernel cache
  [Finder] Fix iteration fails with non-rewindable streams
  [Finder] Fix unexpected duplicate sub path related AppendIterator issue
  [Security] Added tests for the DefaultLogoutSuccessHandler.
  [Security] Added tests for the DefaultAuthenticationSuccessHandler.
  [ClassLoader] tiny refactoring
  [Security] Added tests for the DefaultAuthenticationFailureHandler.
  [Security] Added tests for the remember me ReponseListener.
  [Security] Added tests for the SessionAuthenticationStrategy.
  [Security] Added tests for the AccessMap.
  [FrameworkBundle] removed deprecated method from cache:clear command
  [WebProfiler] remove deprecated verbose option
  fix logger in regards to DebugLoggerInterface
  [Form] [2.3] removed old option
  Added type of return value in VoterInterface.
  [Console] Add namespace support back in to list command
  ...
2013-05-27 16:49:42 +02:00
Fabien Potencier
0270136664 merged branch Tobion/console-event-name (PR #8147)
This PR was merged into the 2.3 branch.

Discussion
----------

[Console] renamed ConsoleForExceptionEvent into ConsoleExceptionEvent

I wondered about the name and now I figured the problem was already raised in the PR: https://github.com/symfony/symfony/pull/7466#discussion-diff-3503539

So I think it should be fixed for LTS.

BC break: yes
test pass: yes

Commits
-------

554ab9f [Console] renamed ConsoleForExceptionEvent into ConsoleExceptionEvent
2013-05-27 16:49:36 +02:00
Fabien Potencier
458ce6da2b Merge branch '2.2' into 2.3
* 2.2:
  Fix several instances of doubled words
  [Finder] Fix iteration fails with non-rewindable streams
  [Finder] Fix unexpected duplicate sub path related AppendIterator issue
  Added type of return value in VoterInterface.
  Fixed two bugs in HttpCache

Conflicts:
	src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php
2013-05-27 16:49:21 +02:00
Fabien Potencier
1ead34ff8c Merge branch '2.1' into 2.2
* 2.1:
  Fix several instances of doubled words
  [Finder] Fix iteration fails with non-rewindable streams
  [Finder] Fix unexpected duplicate sub path related AppendIterator issue
  Added type of return value in VoterInterface.
  Fixed two bugs in HttpCache

Conflicts:
	src/Symfony/Component/Finder/Tests/FinderTest.php
2013-05-27 16:47:40 +02:00
Stefan Oderbolz
2038329114 [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065) 2013-05-27 16:27:36 +02:00
Tobias Schultze
554ab9fa86 [Console] renamed ConsoleForExceptionEvent into ConsoleExceptionEvent 2013-05-27 12:36:30 +02:00
Fabien Potencier
395ec400d1 merged branch bamarni/patch-4 (PR #8141)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3][FrameworkBundle] removed HttpFoundation classes from HttpKernel cache

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

Since #7322, class redeclaration errors will occur in non-debug mode when using HttpCache, because the map isn't adaptative, and HttpCache might need HttpFoundation classes even before booting the Kernel. I suggest moving them to the bootstrap instead.

Commits
-------

c8e5503 [FrameworkBundle] removed HttpFoundation classes from HttpKernel cache
2013-05-27 08:48:22 +02:00
Fabien Potencier
4c444db17b merged branch pulzarraider/patch-1 (PR #8142)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3][Validator] Added missing slovak translations

This commit sholud be also merged to master.

Commits
-------

af2cd98 Added missing slovak translations
2013-05-27 08:46:41 +02:00
Fabien Potencier
0251c939b3 merged branch jakzal/bugfix/interface-check (PR #8143)
This PR was merged into the 2.3 branch.

Discussion
----------

[Security] Fixed the check if an interface exists.

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

re #8136

Commits
-------

fd151fd [Security] Fixed the check if an interface exists.
2013-05-27 08:46:25 +02:00
Fabien Potencier
d52d9aeba0 merged branch jbafford/doubled-word-fixes (PR #8144)
This PR was merged into the 2.1 branch.

Discussion
----------

Fix several instances of doubled words

| 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

One correction to an exception; the rest in docblocks.

Commits
-------

52fed7b Fix several instances of doubled words
2013-05-27 08:45:55 +02:00
John Bafford
52fed7b1d2 Fix several instances of doubled words
One in an exception; the rest in docblocks.
2013-05-26 14:42:07 -04:00
Jakub Zalas
fd151fded2 [Security] Fixed the check if an interface exists. 2013-05-26 18:45:33 +01:00
Andrej Hudec
af2cd98dc5 Added missing slovak translations 2013-05-26 19:20:29 +03:00
Bilal Amarni
c8e5503624 [FrameworkBundle] removed HttpFoundation classes from HttpKernel cache 2013-05-26 17:11:20 +03:00
Fabien Potencier
fb7adaa417 merged branch xanido/fix-list-command (PR #8115)
This PR was merged into the 2.3 branch.

Discussion
----------

[Console] Add namespace support back in to list command

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | Couldn't spot this issue in the list
| License       | MIT
| Doc PR        | NA

Added a test to prevent this happening again.

Commits
-------

79a842a [Console] Add namespace support back in to list command
2013-05-25 18:58:35 +02:00
Fabien Potencier
e9f43bf675 merged branch alquerci/ticket-3585-7834 (PR #8120)
This PR was squashed before being merged into the 2.1 branch (closes

Discussion
----------

[Finder] Fix iteration fails with non-rewindable streams

<table>
  <tr>
    <th>Q</th><th>A</th>
  </tr>
  <tr>
    <td>Bug fix?</td><td>yes</td>
  </tr>
  <tr>
    <td>New feature?</td><td>no</td>
  </tr>
  <tr>
    <td>BC breaks?</td><td>no</td>
  </tr>
  <tr>
    <td>Deprecations?</td><td>no</td>
  </tr>
  <tr>
    <td>Tests pass?</td><td>yes</td>
  </tr>
  <tr>
    <td>Fixed tickets</td><td>#3585, #7834</td>
  </tr>
  <tr>
    <td>License?</td><td>MIT</td>
  </tr>
</table>

- [x] Add a good detection of non seekable stream
- [x] Add some unit tests

But the iteration under ftp stream still not work properly. Edit: need
tests for that.

Commits
-------

169c0b9 [Finder] Fix iteration fails with non-rewindable streams
2013-05-25 17:47:15 +02:00
alquerci
169c0b93b5 [Finder] Fix iteration fails with non-rewindable streams 2013-05-25 17:42:42 +02:00
Fabien Potencier
927718afa9 merged branch alquerci/issue-4922 (PR #8127)
This PR was squashed before being merged into the 2.1 branch (closes #8127).

Discussion
----------

 [Finder] Fix unexpected duplicate sub path related AppendIterator issue

Bug fix: yes
New feature: no
BC breaks: no
Deprecations: no
Tests pass: yes
Fixes: https://github.com/symfony/symfony/pull/4993#issuecomment-8515845
Todo: -
License of the code: MIT

> @dg:  I am afraid it is not working, see this example http://davidgrudl.com/tmp/appenditerator-finder.zip.

Commits
-------

45b68e0  [Finder] Fix unexpected duplicate sub path related AppendIterator issue
2013-05-25 17:38:59 +02:00
alquerci
45b68e02bd [Finder] Fix unexpected duplicate sub path related AppendIterator issue 2013-05-25 17:38:59 +02:00
Fabien Potencier
c29d8457f6 merged branch bamarni/patch-3 (PR #8125)
This PR was merged into the 2.3 branch.

Discussion
----------

[Form] [2.3] removed old option

Looks like a leftover from @c8afa886cd7c9598e5fbda661e93210a7786739b

Commits
-------

a8f4501 [Form] [2.3] removed old option
2013-05-25 17:32:58 +02:00