Commit Graph

23290 Commits

Author SHA1 Message Date
Fabien Potencier
82bfbf0ed9 Merge branch '2.8'
* 2.8:
  [Routing] use constants in tests
  [Process] tweaked README
  [TwigBundle] Fix Twig cache is not properly warmed
  [Validator] Allow an empty path in a URL with only a fragment or a query
  [Security] Use SessionAuthenticationStrategy on RememberMe login
  [HttpFoundation] Fix some typo in the Request doc
  fixed CS
  Added separated handling of root paths
2015-10-18 22:24:22 +02:00
Fabien Potencier
945630a8fa Merge branch '2.7' into 2.8
* 2.7:
  [Routing] use constants in tests
  [Process] tweaked README
  [Validator] Allow an empty path in a URL with only a fragment or a query
  [HttpFoundation] Fix some typo in the Request doc
  fixed CS
  Added separated handling of root paths
2015-10-18 22:23:24 +02:00
Fabien Potencier
fa6c58c90d Merge branch '2.3' into 2.7
* 2.3:
  [Routing] use constants in tests
  [Validator] Allow an empty path in a URL with only a fragment or a query
  [HttpFoundation] Fix some typo in the Request doc
  fixed CS
  Added separated handling of root paths
2015-10-18 22:23:18 +02:00
Fabien Potencier
2f205d47a6 minor #16277 [Routing] use constants in tests (Tobion)
This PR was squashed before being merged into the 2.3 branch (closes #16277).

Discussion
----------

[Routing] use constants in tests

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

Use constants in tests instead of hardcoded values in preparation for #16276

Commits
-------

608c8d2 [Routing] use constants in tests
2015-10-18 22:22:26 +02:00
Tobias Schultze
608c8d25a3 [Routing] use constants in tests 2015-10-18 22:22:24 +02:00
Fabien Potencier
8b3922a7e5 minor #16269 [Process] tweaked README (fabpot)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #16269).

Discussion
----------

[Process] tweaked README

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

Commits
-------

11622ad [Process] tweaked README
2015-10-18 11:49:40 +02:00
Fabien Potencier
11622ad294 [Process] tweaked README 2015-10-18 11:49:40 +02:00
Fabien Potencier
6f48ec5be6 Merge branch '2.7' into 2.8
* 2.7:
  [TwigBundle] Fix Twig cache is not properly warmed
  [Security] Use SessionAuthenticationStrategy on RememberMe login
2015-10-17 17:40:24 +02:00
Fabien Potencier
6e6a0ba79a bug #16262 [TwigBundle] Fix Twig cache is not properly warmed (tucksaun)
This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBundle] Fix Twig cache is not properly warmed

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

Alternative to #15034

Commits
-------

e704ee4 [TwigBundle] Fix Twig cache is not properly warmed
2015-10-17 17:38:12 +02:00
Tugdual Saunier
e704ee4d6c [TwigBundle] Fix Twig cache is not properly warmed 2015-10-17 14:09:51 +01:00
Fabien Potencier
b06a938e63 bug #16259 [Validator] Allow an empty path in a URL with only a fragment or a query (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Allow an empty path in a URL with only a fragment or a query

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

URLs like `http://symfony.com?query=1` or `http://symfony.com#` should be valid.

According to the [RFC3986](https://tools.ietf.org/html/rfc3986#page-16):

> When authority is present, the path must either be empty or begin with a slash ("/") character.
> When authority is not present, the path cannot begin with two slash characters ("//").

Since the RFC describes URIs, the second sentence doesn't apply here as the authority is required in URLs .

Commits
-------

b3a5411 [Validator] Allow an empty path in a URL with only a fragment or a query
2015-10-17 07:39:03 +02:00
Jakub Zalas
b3a54117c8 [Validator] Allow an empty path in a URL with only a fragment or a query 2015-10-16 14:12:47 +01:00
Fabien Potencier
751f2bebdb bug #16226 [filesystem] makeRelativePath does not work correctly from root (jaytaph, fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[filesystem] makeRelativePath does not work correctly from root

| Q             | A
| ------------- | ---
| Bug fix?      | yes/no
| New feature?  | yes/no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1234
| License       | MIT
| Doc PR        | #14066, #14067

When using `makeRelativePath`, it returns an incorrect path when trying to fetch an entry from the root:

      $fs->makePathRelative('/foo/bar/baz', '/');

Actual result:

      ../foo/bar/baz

Expected result:

      foo/bar/baz

As we have specified an absolute path, there is no point on having an `..` added. It works, because a root directory has a `..` which points to itself, but it could result in issues when the relative path is actually prefixed or concatted.

Commits
-------

791b124 fixed CS
7bb394e Added separated handling of root paths
2015-10-16 13:57:06 +02:00
Fabien Potencier
28292394c8 Merge branch '2.8'
* 2.8:
  Added UserLoaderInterface for loading users through Doctrine.
  Fix the detection of the deprecated usage of the ValidationListener
  Use entry_type instead of type
  [Form] Fix missing notice for deprecated `type`
  [DI] Autowiring: w/a https://bugs.php.net/62715
2015-10-16 13:55:41 +02:00
Fabien Potencier
72c6c61dbe bug #16232 Fix missing deprecation notice for type (nicolas-grekas, WouterJ)
This PR was merged into the 2.8 branch.

Discussion
----------

Fix missing deprecation notice for `type`

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

Replaces https://github.com/symfony/symfony/pull/16231

Commits
-------

27517e3 Use entry_type instead of type
87fdffa [Form] Fix missing notice for deprecated `type`
2015-10-16 13:53:17 +02:00
Fabien Potencier
f19a7c9d8c feature #15947 Added UserLoaderInterface for loading users through Doctrine. (mtrojanowski)
This PR was submitted for the 2.7 branch but it was merged into the 2.8 branch instead (closes #15947).

Discussion
----------

Added UserLoaderInterface for loading users through Doctrine.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #11157
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/issues/4543

Based on the @weaverryan and @stof propositions from [this](https://github.com/symfony/symfony/pull/12733#issuecomment-65813565) discussion I created a new interface in the Doctrine Bridge which can be used to more easily implement a repository capable of returning a User.

Commits
-------

a8d3d12 Added UserLoaderInterface for loading users through Doctrine.
2015-10-16 13:51:34 +02:00
Michal Trojanowski
a8d3d124ca Added UserLoaderInterface for loading users through Doctrine. 2015-10-16 13:51:34 +02:00
Fabien Potencier
3510e0a2de bug #16108 [Security] #15764. Use SessionAuthenticationStrategy on RememberMe login (s12v)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #16108).

Discussion
----------

[Security] #15764. Use SessionAuthenticationStrategy on RememberMe login

Regenerate session ID with default session strategy.

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

Commits
-------

795c8b3 [Security] Use SessionAuthenticationStrategy on RememberMe login
2015-10-16 13:32:26 +02:00
Sergey Novikov
795c8b3249 [Security] Use SessionAuthenticationStrategy on RememberMe login
Regenerate session ID with default session strategy
2015-10-16 13:32:26 +02:00
Fabien Potencier
1828d0682a bug #16251 Fix the detection of the deprecated usage of the ValidationListener (stof)
This PR was merged into the 2.8 branch.

Discussion
----------

Fix the detection of the deprecated usage of the ValidationListener

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

the deprecation trigger should be triggered only when the valdiator does not implement the new interface. but implementing both the old and new interface is fine (and this is what is done in Symfony by default, as we provide a BC layer)

Commits
-------

de04070 Fix the detection of the deprecated usage of the ValidationListener
2015-10-16 13:27:11 +02:00
Christophe Coevoet
de04070ba8 Fix the detection of the deprecated usage of the ValidationListener 2015-10-15 14:57:54 +02:00
WouterJ
27517e38be Use entry_type instead of type 2015-10-15 12:37:48 +02:00
Fabien Potencier
4397a031ef minor #16228 [HttpFoundation] Fix some typo in the Request doc (alOneh)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Fix some typo in the Request doc

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

Commits
-------

481fc12 [HttpFoundation] Fix some typo in the Request doc
2015-10-14 19:23:48 +02:00
Nicolas Grekas
eca3e37225 bug #16229 [DI] Autowiring: w/a https://bugs.php.net/62715 (nicolas-grekas)
This PR was merged into the 2.8 branch.

Discussion
----------

[DI] Autowiring: w/a https://bugs.php.net/62715

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

See https://ci.appveyor.com/project/fabpot/symfony/build/1.0.2384#L722

Commits
-------

8d49573 [DI] Autowiring: w/a https://bugs.php.net/62715
2015-10-14 16:12:48 +02:00
Nicolas Grekas
87fdffa0fc [Form] Fix missing notice for deprecated type 2015-10-13 19:19:56 +02:00
Nicolas Grekas
8d49573fb6 [DI] Autowiring: w/a https://bugs.php.net/62715 2015-10-13 19:00:31 +02:00
Nicolas Grekas
cfb15ffc56 Merge branch '2.8'
* 2.8:
  [appveyor] fix ini matrix race conditions
  [Http*] Mock time() to fix transient tests
  [ci] Cache phpunit install
  [WebProfiler] [toolbar] Changed profiler toolbar color to comply with WCAG 2.0AA contrast standards

Conflicts:
	appveyor.yml
2015-10-13 18:13:27 +02:00
Nicolas Grekas
8a76fd9dbc Merge branch '2.7' into 2.8
* 2.7:
  [appveyor] fix ini matrix race conditions
  [Http*] Mock time() to fix transient tests
  [ci] Cache phpunit install
  [WebProfiler] [toolbar] Changed profiler toolbar color to comply with WCAG 2.0AA contrast standards

Conflicts:
	src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig
	src/Symfony/Component/HttpFoundation/Response.php
2015-10-13 18:11:28 +02:00
Nicolas Grekas
7e848fba84 Merge branch '2.3' into 2.7
* 2.3:
  [appveyor] fix ini matrix race conditions
  [Http*] Mock time() to fix transient tests
  [ci] Cache phpunit install
  [WebProfiler] [toolbar] Changed profiler toolbar color to comply with WCAG 2.0AA contrast standards

Conflicts:
	appveyor.yml
	src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
2015-10-13 18:05:47 +02:00
Nicolas Grekas
84f6b30147 minor #16225 [appveyor] fix ini matrix race conditions (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[appveyor] fix ini matrix race conditions

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

Commits
-------

8e59d4a [appveyor] fix ini matrix race conditions
2015-10-13 18:03:19 +02:00
Nicolas Grekas
38a70f30fa Merge branch '2.8'
* 2.8:
  [PhpUnit] exit gracefully to workaround segfaults at shutdown time
  [ExpressionLanguage] marked node classes as being internal
  [Yaml] marked some classes as being internal
2015-10-13 18:01:35 +02:00
Nicolas Grekas
5958eb463c minor #16227 [PhpUnit] exit gracefully to workaround segfaults at shutdown time (nicolas-grekas)
This PR was merged into the 2.8 branch.

Discussion
----------

[PhpUnit] exit gracefully to workaround segfaults at shutdown time

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

Commits
-------

1a93494 [PhpUnit] exit gracefully to workaround segfaults at shutdown time
2015-10-13 18:01:15 +02:00
Hippolyte Alain
481fc12861 [HttpFoundation] Fix some typo in the Request doc 2015-10-13 17:57:12 +02:00
Nicolas Grekas
1a93494f7d [PhpUnit] exit gracefully to workaround segfaults at shutdown time 2015-10-13 17:54:10 +02:00
Nicolas Grekas
8e59d4ae17 [appveyor] fix ini matrix race conditions 2015-10-13 17:38:14 +02:00
Fabien Potencier
791b1247f9 fixed CS 2015-10-13 17:24:19 +02:00
Joshua Thijssen
7bb394e2c4 Added separated handling of root paths 2015-10-13 17:18:25 +02:00
Fabien Potencier
d949fcc8d6 minor #16221 [Http*] Mock time() to fix transient tests (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Http*] Mock time() to fix transient tests

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

Commits
-------

fa604d3 [Http*] Mock time() to fix transient tests
2015-10-13 16:31:59 +02:00
Nicolas Grekas
fa604d3c6f [Http*] Mock time() to fix transient tests 2015-10-13 16:19:21 +02:00
Nicolas Grekas
8ced3c63f3 minor #16222 [ci] Cache phpunit install (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[ci] Cache phpunit install

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

Commits
-------

e6d343a [ci] Cache phpunit install
2015-10-13 12:03:41 +02:00
Nicolas Grekas
e6d343a126 [ci] Cache phpunit install 2015-10-13 10:50:50 +02:00
Fabien Potencier
17499f550e minor #16218 [WebProfilerBundle] [toolbar] Changed profiler toolbar green color to comply with WCAG 2.0AA (spreston)
This PR was merged into the 2.3 branch.

Discussion
----------

[WebProfilerBundle] [toolbar] Changed profiler toolbar green color to comply with WCAG 2.0AA

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -
[WebProfilerBundle] Modified green icon colors for min contrast of 4.5
(resubmitting this on the 2.3 branch. Previous PR was #15827)

Commits
-------

58f5168 [WebProfiler] [toolbar] Changed profiler toolbar color to comply with WCAG 2.0AA contrast standards
2015-10-13 08:30:56 +02:00
Steve Preston
58f5168b4b [WebProfiler] [toolbar] Changed profiler toolbar color to comply with WCAG 2.0AA contrast standards 2015-10-12 16:28:48 -04:00
Fabien Potencier
138654d623 feature #16203 [Yaml] removed YAML parser \ escaping in double-quotes (fabpot)
This PR was merged into the 3.0-dev branch.

Discussion
----------

[Yaml] removed YAML parser \ escaping in double-quotes

| 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

Should be rebased when #16201 is merged.

Commits
-------

5dbf6bc [Yaml] removed parsing of non-escaped backslash in a double-quoted string
2015-10-12 16:09:01 +02:00
Fabien Potencier
e0e38ba8e3 minor #16211 [ExpressionLanguage] marked node classes as being internal (fabpot)
This PR was merged into the 2.8 branch.

Discussion
----------

[ExpressionLanguage] marked node classes as being internal

| 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

Adds `@internal` on some classes, would it make sense to also make them final?

Commits
-------

7d6bc48 [ExpressionLanguage] marked node classes as being internal
2015-10-12 16:08:01 +02:00
Fabien Potencier
117d65f1d8 minor #16210 [Yaml] marked some classes as being internal (fabpot)
This PR was merged into the 2.8 branch.

Discussion
----------

[Yaml] marked some classes as being internal

| 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

Adds `@internal` on some YAML classes.

Commits
-------

29e7893 [Yaml] marked some classes as being internal
2015-10-12 16:07:28 +02:00
Nicolas Grekas
1d3a829a52 Merge branch '2.8'
* 2.8:
  [travis] Load memcache.so
  [2.3] Cherry-pick @group time-sensitive annotations
  [ci] load php_memcache.dll and apcu.so
  [ClassLoader] Split LegacyApcUniversalClassLoaderTest fixtures
  [PhpUnit] Mock clock on @group time-sensitive annotations

Conflicts:
	.travis.yml
	src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php
	src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php
	src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php
2015-10-12 14:48:30 +02:00
Nicolas Grekas
4c223c9d06 Merge branch '2.7' into 2.8
* 2.7:
  [travis] Load memcache.so
  [2.3] Cherry-pick @group time-sensitive annotations
  [ci] load php_memcache.dll and apcu.so
  [ClassLoader] Split LegacyApcUniversalClassLoaderTest fixtures
2015-10-12 14:43:41 +02:00
Nicolas Grekas
c6da10674a Merge branch '2.3' into 2.7
* 2.3:
  [travis] Load memcache.so
  [2.3] Cherry-pick @group time-sensitive annotations
  [ci] load php_memcache.dll and apcu.so

Conflicts:
	.travis.yml
	src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php
2015-10-12 14:42:24 +02:00
Nicolas Grekas
ed40dc3300 [travis] Load memcache.so 2015-10-12 14:38:55 +02:00