Commit Graph

18962 Commits

Author SHA1 Message Date
Fabien Potencier
ccb04adc49 minor #12654 [Hackday] [Form] Added deprecation notice on Form::getErrorsAsString (stefanosala)
This PR was merged into the 2.7 branch.

Discussion
----------

[Hackday] [Form] Added deprecation notice on Form::getErrorsAsString

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

Commits
-------

1d45650 [Form] Added deprecation notice on Form::getErrorsAsString
2014-11-29 15:28:19 +01:00
Fabien Potencier
4e6b74bb00 minor #12645 [Hackday] [2.7] Add a deprecation note about RegisterListenersPass (jzawadzki)
This PR was squashed before being merged into the 2.7 branch (closes #12645).

Discussion
----------

[Hackday] [2.7] Add a deprecation note about RegisterListenersPass

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

Commits
-------

9938179 [Hackday] [2.7] Add a deprecation note about RegisterListenersPass
2014-11-29 15:25:36 +01:00
Jerzy Zawadzki
9938179e44 [Hackday] [2.7] Add a deprecation note about RegisterListenersPass 2014-11-29 15:25:32 +01:00
Fabien Potencier
177425992e minor #12749 Deprecate interface Symfony\Component\OptionsResolver\OptionsResolverInterface (lbrunet)
This PR was merged into the 2.7 branch.

Discussion
----------

Deprecate interface  Symfony\Component\OptionsResolver\OptionsResolverInterface

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

Deprecate interface  Symfony\Component\OptionsResolver\OptionsResolverInterface

Commits
-------

1b42e32 Deprecate interface  Symfony\Component\OptionsResolver\ OptionsResolverInterface
2014-11-29 15:23:00 +01:00
Fabien Potencier
58f452d767 minor #12629 Added deprecation note about 'virtual' form option. Issue #12603. (Lenard Palko)
This PR was squashed before being merged into the 2.7 branch (closes #12629).

Discussion
----------

Added deprecation note about 'virtual' form option. Issue #12603.

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

Uncommented the trigger_error method calls for 'virtual' form option.

Commits
-------

1308310 Added deprecation note about 'virtual' form option. Issue #12603.
2014-11-29 15:20:26 +01:00
Lenard Palko
13083106c2 Added deprecation note about 'virtual' form option. Issue #12603. 2014-11-29 15:20:23 +01:00
Laurent Brunet
1b42e32f09 Deprecate interface Symfony\Component\OptionsResolver\ OptionsResolverInterface 2014-11-29 15:16:38 +01:00
Fabien Potencier
57e97ba665 minor #12727 [DEPRECATION] Add a deprecation note about Yaml::parse() file support #12701 (h4cc)
This PR was merged into the 2.7 branch.

Discussion
----------

[DEPRECATION] Add a deprecation note about Yaml::parse() file support #12701

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

Commits
-------

4ef4c2c Add a deprecation note about Yaml::parse() file support #12701
2014-11-29 15:13:01 +01:00
Fabien Potencier
cc5a2e2d19 minor #12728 [DEPRECATION] Added deprecated trigger for ApacheMatcherDumper and ApacheUrlMatcher (blamh)
This PR was merged into the 2.7 branch.

Discussion
----------

[DEPRECATION] Added deprecated trigger for ApacheMatcherDumper and ApacheUrlMatcher

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

Commits
-------

963615a Added deprecated trigger for ApacheMatcherDumper and ApacheUrlMatcher
2014-11-29 15:12:16 +01:00
Simon Paarlberg
963615a1d6 Added deprecated trigger for ApacheMatcherDumper and ApacheUrlMatcher 2014-11-29 15:07:39 +01:00
Julius Beckmann
4ef4c2c1e1 Add a deprecation note about Yaml::parse() file support #12701 2014-11-29 15:04:31 +01:00
Fabien Potencier
3274632fe0 minor #12729 [Validator] add deprecation log (#12700) (kbsali)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] add deprecation log (#12700)

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

This adds depreciation note for ConstraintViolation::getMessageParameters() and ConstraintViolation::getMessagePluralization() methods.

Commits
-------

a3cfe82 [Validator] add deprecation log (#12700)
2014-11-29 14:59:00 +01:00
Fabien Potencier
6ad5d8caf9 minor #12742 Deprecate Symfony\Component\Validator\GlobalExecutionContextInterface (aferrandini)
This PR was merged into the 2.7 branch.

Discussion
----------

Deprecate Symfony\Component\Validator\GlobalExecutionContextInterface

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

Deprecate interface Symfony\Component\Validator\GlobalExecutionContextInterface

Commits
-------

b581096 Deprecate Symfony\Component\Validator\GlobalExecutionContextInterface
2014-11-29 14:56:14 +01:00
Kevin Saliou
a3cfe82b86 [Validator] add deprecation log (#12700) 2014-11-29 14:54:31 +01:00
Fabien Potencier
216a5fb79c minor #12740 [Hackday][2.7] Resolves #12681. Added deprecation trigger for ClassBased... (amansilla)
This PR was merged into the 2.7 branch.

Discussion
----------

[Hackday][2.7] Resolves #12681. Added deprecation trigger for ClassBased...

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

Commits
-------

8bbbefe [Hackday][2.7] Resolves #12681. Added deprecation trigger for ClassBasedInterface.
2014-11-29 14:54:14 +01:00
Ariel Ferrandini
b581096643 Deprecate Symfony\Component\Validator\GlobalExecutionContextInterface 2014-11-29 14:53:16 +01:00
Fabien Potencier
e32d439f7b minor #12739 [Validator] Add deprecation message #12677. (xelaris)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] Add deprecation message #12677.

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

Commits
-------

a00c954 [Validator] Add deprecation message about Symfony\Component\Validator\MetadataInterface.
2014-11-29 14:52:36 +01:00
Stefano Sala
1d4565043a [Form] Added deprecation notice on Form::getErrorsAsString 2014-11-29 14:47:35 +01:00
Antonio Mansilla
8bbbefe271 [Hackday][2.7] Resolves #12681. Added deprecation trigger for ClassBasedInterface. 2014-11-29 14:47:16 +01:00
Alexander Schwenn
a00c954c60 [Validator] Add deprecation message about Symfony\Component\Validator\MetadataInterface. 2014-11-29 14:44:17 +01:00
Fabien Potencier
e0913ffb65 minor #12598 Improved error message (WouterJ)
This PR was merged into the 2.7 branch.

Discussion
----------

Improved error message

If no alternatives could be found, the error message is: "Attempted to call method "getContents" on class "SebastianBergmann\Diff\Diff"." This doesn't point out any error, as it doesn't tell you that the method does not exists. This PR tries to fix this.

Commits
-------

5076a77 Improved error message
2014-11-29 14:43:38 +01:00
Fabien Potencier
22999f71f5 minor #12691 [Validator] add deprecation log to class ApcCache (#12665) (kbsali)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] add deprecation log to class ApcCache (#12665)

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

This adds depreciation note for the Symfony\Component\Validator\Mapping\Cache\ApcCache class.

Commits
-------

881ed1e [Validator] add deprecation log (#12665)
2014-11-29 14:36:36 +01:00
Fabien Potencier
2e1230f71d minor #12722 [Console] add deprecation log (#12707) (kbsali)
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] add deprecation log (#12707)

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

This adds depreciation note for the Symfony\Component\Console\Helper\TableHelper class.

Commits
-------

a1a4ece [Console] add deprecation log (#12707)
2014-11-29 14:35:04 +01:00
Kevin Saliou
a1a4ece91f [Console] add deprecation log (#12707) 2014-11-29 14:32:55 +01:00
Kevin Saliou
881ed1eb61 [Validator] add deprecation log (#12665) 2014-11-29 14:30:29 +01:00
Fabien Potencier
a4f8ac1923 minor #12715 Deprecate interface Symfony\Component\Validator\PropertyMetadataInterface (aferrandini)
This PR was merged into the 2.7 branch.

Discussion
----------

Deprecate interface Symfony\Component\Validator\PropertyMetadataInterface

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

Deprecate interface Symfony\Component\Validator\PropertyMetadataInterface

Commits
-------

4b3f135 Deprecate interface Symfony\Component\Validator\PropertyMetadataInterface
2014-11-29 14:28:45 +01:00
Ariel Ferrandini
4b3f135a80 Deprecate interface Symfony\Component\Validator\PropertyMetadataInterface 2014-11-29 14:25:30 +01:00
Fabien Potencier
e8d98578f4 minor #12673 [Form] [Hackday] [2.7] Add a deprecation note about the form_enctype helper (mrcmorales)
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] [Hackday] [2.7] Add a deprecation note about the `form_enctype` helper

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

Commits
-------

2061a88 issue 12664
2014-11-29 14:25:01 +01:00
Fabien Potencier
0c7df5898f feature #12666 [Hackday][Stopwatch] added __toString on StopwatchEvent (damienalexandre)
This PR was merged into the 2.7 branch.

Discussion
----------

[Hackday][Stopwatch] added __toString on StopwatchEvent

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

This allow to just print the events in a log or something.

```php
$stopwatch = new Stopwatch();
$event = $stopwatch->start('foo', 'cat');

echo $event; // cat: 0.00 MiB - 0 ms
```

Commits
-------

0b88a23 [Stopwatch] added __toString on StopwatchEvent
2014-11-29 14:10:59 +01:00
Fabien Potencier
9cd6e6acc0 minor #12650 add deprecation log (#12618) (phramz)
This PR was merged into the 2.7 branch.

Discussion
----------

add deprecation log (#12618)

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

Commits
-------

7d9afd7 add deprecation log (#12618)
2014-11-29 14:09:06 +01:00
Fabien Potencier
7575d0d2ca minor #12696 [2.7][Process] Add deprecation message for component (romainneutron)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][Process] Add deprecation message for component

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

Commits
-------

b9a6b71 Add deprecation message for Process
2014-11-29 13:59:17 +01:00
Fabien Potencier
b82d6cf31d minor #12705 Adjust error_reporting to allow deprecation messages for 3.0 (davidfuhr)
This PR was merged into the 2.7 branch.

Discussion
----------

Adjust error_reporting to allow deprecation messages for 3.0

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

Commits
-------

11ba901 Adjust error_reporting to allow deprecation messages for 3.0
2014-11-29 13:46:50 +01:00
David Fuhr
11ba901fec Adjust error_reporting to allow deprecation messages for 3.0 2014-11-29 13:40:43 +01:00
Damien Alexandre
0b88a23cb8 [Stopwatch] added __toString on StopwatchEvent 2014-11-29 13:01:15 +01:00
Romain Neutron
b9a6b711d3 Add deprecation message for Process 2014-11-29 12:54:42 +01:00
Marc Morales Valldepérez
2061a88c9d issue 12664 2014-11-29 12:28:54 +01:00
Maximilian Reichel
7d9afd72ed add deprecation log (#12618) 2014-11-29 11:52:21 +01:00
Wouter J
5076a778a5 Improved error message 2014-11-28 20:09:16 +01:00
Fabien Potencier
d277c16a27 Merge branch '2.6' into 2.7
* 2.6: (36 commits)
  [Debug] fix error message on double exception
  [Validator] make DateTime objects represented as strings in the violation message.
  [RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener
  Upgrade information for the Translation component regarding the new LoggingTranslator class.
  [WebProfilerBundle] Remove usage of app.request in search bar template
  Fix initialized() with aliased services
  fix data type in docblock
  Rename Symfony2 to Symfony
  bumped Symfony version to 2.6.0
  updated VERSION for 2.6.0-BETA2
  updated CHANGELOG for 2.6.0-BETA2
  [Debug] fix ENT_SUBSTITUTE usage
  compare version using PHP_VERSION_ID
  backport #12489
  remove an unneeded check
  Remove block submit_widget
  reformat code as suggested by @fabpot
  Fix typo
  Make `\Request::get` more performant.
  properly set request attributes in controller test
  ...
2014-11-28 11:00:56 +01:00
Fabien Potencier
18c4ac1f6e Merge branch '2.5' into 2.6
* 2.5:
  [Debug] fix error message on double exception
  Fix initialized() with aliased services
  Rename Symfony2 to Symfony
  compare version using PHP_VERSION_ID
  backport #12489
  remove an unneeded check
2014-11-28 11:00:40 +01:00
Fabien Potencier
402e18321e Merge branch '2.3' into 2.5
* 2.3:
  [Debug] fix error message on double exception
  Fix initialized() with aliased services
  Rename Symfony2 to Symfony
  backport #12489

Conflicts:
	CONTRIBUTING.md
	src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php
	src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php
2014-11-28 11:00:29 +01:00
Fabien Potencier
0dfa7d549e minor #12554 compare version using PHP_VERSION_ID (xabbuh)
This PR was merged into the 2.5 branch.

Discussion
----------

compare version using PHP_VERSION_ID

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

This continues the work started in #12497 on the `2.3` branch.

Commits
-------

d2f846b compare version using PHP_VERSION_ID
2014-11-28 10:43:41 +01:00
Fabien Potencier
efbf588ed0 bug #12553 [Debug] fix error message on double exception (nicolas-grekas)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #12553).

Discussion
----------

[Debug] fix error message on double exception

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

Commits
-------

1ed7606 [Debug] fix error message on double exception
2014-11-28 10:40:13 +01:00
Nicolas Grekas
1ed7606c32 [Debug] fix error message on double exception 2014-11-28 10:40:13 +01:00
Fabien Potencier
155fa96bff minor #12551 remove an unneeded check (xabbuh)
This PR was merged into the 2.5 branch.

Discussion
----------

remove an unneeded check

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

It is already checked in the `isEnabled()` method if the current PHP
build is HHVM and the `server:run` command is never enabled then.
Thus, it's not needed to check for HHVM on every command execution.

Commits
-------

2035fea remove an unneeded check
2014-11-28 10:36:33 +01:00
Fabien Potencier
819280fbbc bug #12550 [FrameworkBundle] backport #12489 (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] backport #12489

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

Commits
-------

556eff1 backport #12489
2014-11-28 10:32:58 +01:00
Fabien Potencier
4f05279edd minor #12565 Rename Symfony2 to Symfony (romainneutron)
This PR was merged into the 2.3 branch.

Discussion
----------

Rename Symfony2 to Symfony

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

Replaces #12563

Commits
-------

0a76b7e Rename Symfony2 to Symfony
2014-11-28 10:25:39 +01:00
Fabien Potencier
c4902d8342 minor #12579 [Translation] [2.6] Upgrade information for LoggingTranslator (derrabus)
This PR was merged into the 2.6 branch.

Discussion
----------

[Translation] [2.6] Upgrade information for LoggingTranslator

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

When upgrading a Symfony 2.5 project to the 2.6 branch, I noticed that the `@translator` service was changed. In the affected project, we've had a service that depends on the `@translator` service and uses a type hint to ensure that a `Translator` instance is passed to the constructor. With the introduction of the `LoggingTranslator` class (PR #10887), this type hint now fails.

I have added a small note to ` UPGRADE-2.6.md` in case more people stumble across this changed behavior.

Commits
-------

cd55a81 Upgrade information for the Translation component regarding the new LoggingTranslator class.
2014-11-28 10:16:35 +01:00
Fabien Potencier
48e6f7ad6d bug #12437 [2.6] [Validator] make DateTime objects represented as strings in the violation message (hhamon)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12437).

Discussion
----------

[2.6] [Validator] make DateTime objects represented as strings in the violation message

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

Commits
-------

b753218 [Validator] make DateTime objects represented as strings in the violation message.
2014-11-28 10:08:04 +01:00
Hugo Hamon
b753218ff5 [Validator] make DateTime objects represented as strings in the violation message. 2014-11-28 10:08:04 +01:00