Commit Graph

19753 Commits

Author SHA1 Message Date
Fabien Potencier
b604b0ae75 bug #12784 [DependencyInjection] make paths relative to __DIR__ in the generated container (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] make paths relative to __DIR__ in the generated container

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6484, #3079, partially #9238, #10894, #10999
| License       | MIT
| Doc PR        | n/a

This is an alternative approach to #10999 for removing absolute paths from the generated container:
instead of trying to fix the container file after it has been dumped, telling to the PhpDumper where its output will be written allows it to replace parts of strings by an equivalent value based on `__DIR__`.
This should be safe, thus the PR is on 2.3.

Commits
-------

edd7057 [DependencyInjection] make paths relative to __DIR__ in the generated container
2014-12-02 13:16:33 +01:00
Nicolas Grekas
edd705716a [DependencyInjection] make paths relative to __DIR__ in the generated container 2014-12-02 11:32:16 +01:00
Christian Flothmann
88e3314476 [Console] improve deprecation warning triggers
Since the default helper set of the Console `Application` relies on
the `DialogHelper`, the `ProgressHelper` and the `TableHelper`, there
must be a way to not always trigger `E_USER_DEPRECATION` errors when
one of these helper is used.
2014-12-01 20:43:48 +01:00
Fabien Potencier
1c8bfeaa6c minor #12794 [FrameworkBundle][Router Cmd] Use debug namespace. (aitboudad)
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle][Router Cmd] Use debug namespace.

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

Commits
-------

408df7c [FrameworkBundle][Router Cmd] use debug namespace.
2014-12-01 18:53:46 +01:00
Fabien Potencier
619acd252d minor #12787 [FrameworkBundle] Update deprecated service call (lrlopez)
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle] Update deprecated service call

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none, but related to #11593 and #11690
| License       | MIT
| Doc PR        | none

Service `security.context` is now deprecated due to PR #11690. This commit updates PR #11593 replacing `security.context` with `security.authorization_checker` in the `isGranted()` controller shortcut introduced in Symfony 2.6.

Commits
-------

2625193 [FrameworkBundle] Update deprecated service call
2014-12-01 18:52:16 +01:00
Abdellatif AitBoudad
408df7c1ce [FrameworkBundle][Router Cmd] use debug namespace. 2014-12-01 14:24:26 +00:00
Luis Ramón López
2625193bd1 [FrameworkBundle] Update deprecated service call
The service `security.context` is now deprecated due to PR #11690.

This commit updates PR #11593 replacing `security.context` with
`security.authorization_checker` in the `isGranted()` controller
shortcut.
2014-11-30 20:51:37 +01:00
Fabien Potencier
9e0dff5a91 minor #12781 Fixed the symfony/config version constraint (GrahamCampbell)
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed the symfony/config version constraint

| 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

##### This pull request fixes the `symfony/config` version constraint in the proxy manager bridge.

Before this pull, composer was only allowing `v2.3.0` to be downloaded. This surely was not the intention. I've updated the version constraint from `"2.3"` to `"~2.3"` thus allowing all 2.x versions that are equal to or greater than `v2.3.0`.

Commits
-------

ec14f0f Fixed the symfony/config version constraint
2014-11-30 18:00:27 +01:00
Fabien Potencier
c68ff54aac minor #12774 Docblock Fixes (GrahamCampbell)
This PR was merged into the 2.3 branch.

Discussion
----------

Docblock Fixes

| 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

##### This pull request fixes the docblock alignment as requested in #12760.

It was also necessary for me to ensure the `@return` annotations were correctly separated in order to accurately align the `@param` annotations.

Commits
-------

443307e Docblock fixes
2014-11-30 17:59:09 +01:00
Fabien Potencier
b4a8655020 minor #12777 Tweaked the password-compat version constraint (GrahamCampbell)
This PR was merged into the 2.3 branch.

Discussion
----------

Tweaked the password-compat version constraint

| 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

##### This pull request tweaks the `"ircmaxell/password-compat` version constraint in the 2.3 branch.

I've updated the version constraint to `"~1.0"` match the way we require all "stable" releases. Note that this version constraint is technically different, but I consider it safe still.

Commits
-------

f703e56 Tweaked the password-compat version constraint
2014-11-30 17:56:53 +01:00
Fabien Potencier
b788a08f50 minor #12783 Fixed the syntax of a composer.json file (GrahamCampbell)
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed the syntax of a composer.json file

| 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

##### This pull request fixes the syntax of a composer.json file.

There should not be a space before a colon following a double quote. This is not bad syntax, but it just an inconsistency.

Commits
-------

0f8547a Fixed the syntax of a composer.json file
2014-11-30 17:54:43 +01:00
Fabien Potencier
5b6a95c4c2 minor #12785 Removed a dev annotation from a version constraint (GrahamCampbell)
This PR was merged into the 2.6 branch.

Discussion
----------

Removed a dev annotation from a version constraint

| 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

##### This pull request removes an unneeded dev annotation from a version constraint.

This annotation is no longer required because the stable tag is now sufficient, and also, even if we did want the dev version, we still wouldn't need this annotation because it's a dev-dependency, and the minimum stability is set to dev anyway.

Commits
-------

5e35fff Removed a dev annotation from a version constraint
2014-11-30 17:54:03 +01:00
Fabien Potencier
3b7f035922 minor #12786 [Console] [DialogHelper] Fix PHP Fatal error: Cannot call constructor in DialogHelper.php on line 37 (driskell)
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] [DialogHelper] Fix PHP Fatal error: Cannot call constructor in DialogHelper.php on line 37

| 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

Since yesterday our composer builds have been failing due to an error originating from Symfony/console. We've also been seeing duplicated deprecation warnings:

```
PHP Deprecated:  \Symfony\Component\Console\Helper\DialogHelper is deprecated since version 2.5 and will be removed in 3.0. Use QuestionHelper instead. in vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 14
PHP Deprecated:  DialogHelper is deprecated since version 2.5 and will be removed in 3.0. Use QuestionHelper instead. in vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 35
PHP Fatal error:  Cannot call constructor in vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 37
```

It looks like this was introduced in PR #12737. Then #12759 was raised to change the warning to the header to only print a single warning. But rather than #12759 having #12737 as a parent and reverting it - it's parent is from before #12737 was merged. So there's now a situation of both PR having being merged - one adding deprecation warning to file header, and one adding deprecation to construct() (and also causing fatal error.)

This PR fixes the issue by reverting the breaking parent::construct() added by #12737 so essentially only #12759 is active, which adds a single deprecation warning, and does not break the code.

NB: This is the test failure for the Console component - test fails since #12737. This patch fixes this and passes all tests for the Console component.
```
$ phpunit src/Symfony/Component/Console
PHP Fatal error:  Cannot call constructor in src/Symfony/Component/Console/Helper/DialogHelper.php on line 37
```

Jason

Commits
-------

ada9a58 Fix PHP Fatal error:  Cannot call constructor in symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 37
2014-11-30 17:12:22 +01:00
Jason Woods
ada9a58f55 Fix PHP Fatal error: Cannot call constructor in symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 37 2014-11-30 15:28:47 +00:00
Graham Campbell
5e35fffa70 Removed a dev annotation from a version constraint 2014-11-30 15:16:06 +00:00
Graham Campbell
0f8547af4b Fixed the syntax of a composer.json file 2014-11-30 15:11:35 +00:00
Graham Campbell
ec14f0f007 Fixed the symfony/config version constraint
Fixes the symfony/config version constraint in the proxy manager bridge
2014-11-30 15:06:19 +00:00
Graham Campbell
f703e5661a Tweaked the password-compat version constraint 2014-11-30 14:39:13 +00:00
Graham Campbell
443307edc1 Docblock fixes 2014-11-30 13:33:44 +00:00
Fabien Potencier
9c6b377116 minor #12763 [Validator] [Deprecated] Add a deprecation note about ElementMetadata (davidromani)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] [Deprecated] Add a deprecation note about ElementMetadata

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

Commits
-------

21c32b5 add trigger message
2014-11-30 13:49:41 +01:00
Fabien Potencier
0d32310448 minor #12759 Append to PR #12737 referring Ticket #12704 (rodrigobb)
This PR was squashed before being merged into the 2.7 branch (closes #12759).

Discussion
----------

Append to PR #12737 referring Ticket #12704

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

Commits
-------

b57ce38 Append to PR #12737 referring Ticket #12704
2014-11-30 13:47:13 +01:00
Rodrigo Borrego Bernabé
b57ce38bf0 Append to PR #12737 referring Ticket #12704 2014-11-30 13:47:11 +01:00
Fabien Potencier
03aa6f7622 minor #12671 Issue #12658 Add a deprecation note about Translator's setFallbackLocale... (javiernuber)
This PR was squashed before being merged into the 2.7 branch (closes #12671).

Discussion
----------

Issue #12658 Add a deprecation note about Translator's setFallbackLocale...

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

Commits
-------

cd05026 Issue #12658 Add a deprecation note about Translator's setFallbackLocale...
2014-11-30 12:28:39 +01:00
Fco Javier Núñez Berrocoso
cd0502660d Issue #12658 Add a deprecation note about Translator's setFallbackLocale... 2014-11-30 12:28:38 +01:00
Fabien Potencier
996ac0b714 minor #12680 Issue #12606 Adding warning logs about the deprecation of [...]/Tests/FormIntegration... (csuarez)
This PR was squashed before being merged into the 2.7 branch (closes #12680).

Discussion
----------

Issue #12606 Adding warning logs about the deprecation of [...]/Tests/FormIntegration...

This fixes Issue #12606

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

Commits
-------

2267749 Issue #12606 Adding warning logs about the deprecation of [...]/Tests/FormIntegration...
2014-11-30 12:27:42 +01:00
César Suárez Ortega
226774966e Issue #12606 Adding warning logs about the deprecation of [...]/Tests/FormIntegration... 2014-11-30 12:27:41 +01:00
Fabien Potencier
bfc5c06d3b minor #12699 Hackday deprecated 12621 (arnaugm)
This PR was squashed before being merged into the 2.7 branch (closes #12699).

Discussion
----------

Hackday deprecated 12621

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

[MonologBridge] added the deprecated error trigger in the monolog logger emerg(), crit(), err() and warn() methods
[HttpKernel] added the deprecated error trigger in the NullLogger emerg(), crit(), err() and warn() methods

Commits
-------

88b9500 Hackday deprecated 12621
2014-11-30 12:26:29 +01:00
Arnau González
88b9500c8b Hackday deprecated 12621 2014-11-30 12:26:28 +01:00
Fabien Potencier
445fabd336 minor #12723 Added deprecation log for validate and validateValue on ExecutionContext... (Lenard Palko)
This PR was squashed before being merged into the 2.7 branch (closes #12723).

Discussion
----------

Added deprecation log for validate and validateValue on ExecutionContext...

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

Commits
-------

deeb652 Added deprecation log for validate and validateValue on ExecutionContext...
2014-11-30 12:24:21 +01:00
Lenard Palko
deeb652bf9 Added deprecation log for validate and validateValue on ExecutionContext... 2014-11-30 12:24:19 +01:00
Fabien Potencier
590b4f358d minor #12734 [Console] [Hackday] [2.7] Add a deprecation note about ProgressHelper (mrcmorales)
This PR was squashed before being merged into the 2.7 branch (closes #12734).

Discussion
----------

[Console] [Hackday] [2.7]  Add a deprecation note about ProgressHelper

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

Commits
-------

69fa99a [Console] [Hackday] [2.7]  Add a deprecation note about ProgressHelper
2014-11-30 12:21:08 +01:00
Marc Morales Valldepérez
69fa99a6a6 [Console] [Hackday] [2.7] Add a deprecation note about ProgressHelper 2014-11-30 12:21:07 +01:00
Fabien Potencier
c65864e0a8 minor #12738 [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method (snoek09)
This PR was squashed before being merged into the 2.7 branch (closes #12738).

Discussion
----------

[Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method

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

Commits
-------

171377d [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method
2014-11-30 12:19:53 +01:00
Henry Snoek
171377df7a [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method 2014-11-30 12:19:51 +01:00
Fabien Potencier
f7bb10a6e0 minor #12745 [Validator] Added a deprecation note about setPropertyAccessor #12698 (MICKtheBIG)
This PR was squashed before being merged into the 2.7 branch (closes #12745).

Discussion
----------

[Validator] Added a deprecation note about setPropertyAccessor #12698

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

Commits
-------

c82dc5e [Validator] Added a deprecation note about setPropertyAccessor #12698
2014-11-30 12:18:55 +01:00
Michael Pohlers
c82dc5e21f [Validator] Added a deprecation note about setPropertyAccessor #12698 2014-11-30 12:18:54 +01:00
Fabien Potencier
910a30c0e9 minor #12746 [Locale] Adding a deprecation note about the Locale component (rodrigobb)
This PR was squashed before being merged into the 2.7 branch (closes #12746).

Discussion
----------

[Locale] Adding a deprecation note about the Locale component

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

Commits
-------

5580a4f [Locale] Adding a deprecation note about the Locale component
2014-11-30 12:17:45 +01:00
Rodrigo Borrego Bernabé
5580a4f349 [Locale] Adding a deprecation note about the Locale component 2014-11-30 12:17:44 +01:00
Fabien Potencier
b32395bd88 minor #12753 [Validator] added a deprecation note about MetadataFactoryInterface (Ismail Faizi)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] added a deprecation note about MetadataFactoryInterface

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

Commits
-------

33fa8ff [Validator] added a deprecation note about MetadataFactoryInterface addressing #12690
2014-11-30 12:15:54 +01:00
Fabien Potencier
62a61c34e9 minor #12755 [Validator][Hackday] [2.7] Add a deprecation note about ValidationVisito... (neoshadybeat)
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator][Hackday] [2.7] Add a deprecation note about ValidationVisito...

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

Commits
-------

786e509 [Validator][Hackday] [2.7] Add a deprecation note about ValidationVisitorInterface and ValidationVisitor #12675
2014-11-30 12:14:16 +01:00
Nicolas Grekas
ceecb502f8 [Filesystem] fix lock file permissions 2014-11-30 11:30:45 +01:00
Fabien Potencier
a0703cff9a minor #12767 [Console] Remove dialog helper usage (blanchonvincent)
This PR was merged into the 2.5 branch.

Discussion
----------

[Console] Remove dialog helper usage

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

Because the dialog helper is deprecated, we should use question helper instead.

Commits
-------

844aa54 Remove dialog usage
2014-11-30 11:12:31 +01:00
Fabien Potencier
60ea9a15f6 minor #12762 [ClassLoader] Add a deprecation note about UniversalClassLoader class (davidromani)
This PR was squashed before being merged into the 2.7 branch (closes #12762).

Discussion
----------

[ClassLoader] Add a deprecation note about UniversalClassLoader class

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

Commits
-------

f216c81 [ClassLoader] Add a deprecation note about UniversalClassLoader class
2014-11-30 09:19:13 +01:00
David Romaní
f216c819ed [ClassLoader] Add a deprecation note about UniversalClassLoader class 2014-11-30 09:19:10 +01:00
blanchonvincent
844aa54aa2 Remove dialog usage 2014-11-30 09:03:32 +01:00
David Romaní
21c32b5923 add trigger message 2014-11-29 20:05:15 +01:00
Ismail Faizi
33fa8ff25d [Validator] added a deprecation note about MetadataFactoryInterface addressing #12690 2014-11-29 19:16:10 +01:00
Fabien Potencier
6619af8e42 minor #12627 Added a deprecation warning for the command dumper (Nyholm)
This PR was merged into the 2.7 branch.

Discussion
----------

Added a deprecation warning for the command dumper

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

This fixes #12620

Commits
-------

07436d7 Added a deprecation warning for the command dumper
2014-11-29 16:42:01 +01:00
Tobias Nyholm
07436d7e15 Added a deprecation warning for the command dumper 2014-11-29 16:40:17 +01:00
Fabien Potencier
c6cc3ebfbe minor #12724 Resolves #12623 [Hackday] [2.7] Add a deprecation note about Debug compo... (davidfuhr)
This PR was merged into the 2.7 branch.

Discussion
----------

Resolves #12623 [Hackday] [2.7] Add a deprecation note about Debug compo...

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

Commits
-------

5876f52 [Hackday] [2.7] Add a deprecation note about Debug component classes
2014-11-29 16:35:18 +01:00