Commit Graph

18825 Commits

Author SHA1 Message Date
Jakub Zalas
849fb29984 Drop support for model_timezone and view_timezone options in TimeType and DateType. 2014-11-16 18:46:24 +01:00
Fabien Potencier
009fd4ddc1 bug #12487 [DomCrawler] Added support for 'link' tags in the Link class (StephaneSeng)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12487).

Discussion
----------

[DomCrawler] Added support for 'link' tags in the Link class

| Q             | A
| ------------- | ---
| Bug fix?      | No
| New feature?  | Not really
| BC breaks?    | No
| Deprecations? | No
| Tests pass?   | Yes (at least those of DomCrawler)
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

My use case is that I crawl web pages for RSS links so I need to retrieve the 'href' attributes of 'link' elements.
I would like to use the Link class to resolve encountered 'href' relative URLs.

Please note that I did not replace `if ('a' !== $node->nodeName && 'area' !== $node->nodeName)` with `if (!$node->hasAttribute('href'))` to ensure backward compatibility.
Indeed, according to http://www.w3.org/TR/html5/links.html, the 'href' attribute is optional for 'a' and 'area' elements.

Commits
-------

d8d6fcf [DomCrawler] Added support for link tags in the Link class
2014-11-16 18:39:21 +01:00
Stéphane Seng
d8d6fcff7d [DomCrawler] Added support for link tags in the Link class 2014-11-16 18:39:20 +01:00
Fabien Potencier
e7067cb771 Merge branch '2.5' into 2.6
* 2.5:
  Update filesystem readme.md to include exists method
  Add machine readable events
  [HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector
  fixed typo
  [Translations] Added missing Hebrew language trans-unit sources
  [DependencyInjection] inlined factory not referenced
  Fixed case for empty folder
  Fixed whitespace control for password form widget
  [Routing] correctly initialize condition as string
2014-11-16 18:28:09 +01:00
Fabien Potencier
679911ca82 Merge branch '2.3' into 2.5
* 2.3:
  Update filesystem readme.md to include exists method
  Add machine readable events
  fixed typo
  [Translations] Added missing Hebrew language trans-unit sources
  [DependencyInjection] inlined factory not referenced
  Fixed case for empty folder
2014-11-16 18:28:00 +01:00
Fabien Potencier
83c6ead761 minor #12468 Update filesystem readme.md to include exists method (ericduran)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12468).

Discussion
----------

Update filesystem readme.md to include exists method

Read the contributing docs, I don't think I missed anything but to be fair I went through it pretty fast :-/

Commits
-------

16c1b66 Update filesystem readme.md to include exists method
2014-11-16 18:27:15 +01:00
Eric J. Duran
16c1b6669d Update filesystem readme.md to include exists method 2014-11-16 18:27:15 +01:00
Fabien Potencier
80c48cc9aa bug #12490 [2.6][FrameworkBundle] Fix server start in case the PHP binary is not found (romainneutron)
This PR was merged into the 2.6 branch.

Discussion
----------

[2.6][FrameworkBundle] Fix server start in case the PHP binary is not found

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

Commits
-------

a6b1cfc [FrameworkBundle] Fix server start in case the PHP binary is not found
2014-11-16 18:25:26 +01:00
Fabien Potencier
b53adf9e37 minor #12299 Add machine readable events (dawehner)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12299).

Discussion
----------

Add machine readable events

As discussed in [#11878] it would be great to have some simple machine readable way to find events

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

Commits
-------

ace9a22 Add machine readable events
2014-11-16 18:21:19 +01:00
Daniel Wehner
ace9a22101 Add machine readable events 2014-11-16 18:21:02 +01:00
Fabien Potencier
e318b03130 minor #12493 Fixed minor typo (pborreli)
This PR was merged into the 2.6 branch.

Discussion
----------

Fixed minor typo

Commits
-------

0fbb75c Fixed minor typo
2014-11-16 18:19:32 +01:00
Pascal Borreli
0fbb75c8e4 Fixed minor typo 2014-11-16 15:23:53 +00:00
Romain Neutron
a6b1cfc5b8 [FrameworkBundle] Fix server start in case the PHP binary is not found 2014-11-16 12:50:04 +01:00
Fabien Potencier
dba2f5fe54 minor #12458 Update UPGRADE-2.6.md (perajovic)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12458).

Discussion
----------

Update UPGRADE-2.6.md

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

Commits
-------

450e341 Update UPGRADE-2.6.md
2014-11-12 13:06:33 +01:00
Pera Jovic
450e34193f Update UPGRADE-2.6.md 2014-11-12 13:06:32 +01:00
Fabien Potencier
af4f95936d bug #12443 [HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector (jameshalsall)
This PR was submitted for the master branch but it was merged into the 2.5 branch instead (closes #12443).

Discussion
----------

[HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector

| 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

As part of https://github.com/symfony/symfony/pull/11193 support for controllers using `__invoke()` was added.

The `RequestDataCollector` did not support controllers that were defined in the routing as...

```php
route_name:
    path: /{id}
    defaults: { _controller: acme_app.page.controller.page }
    requirements:
        id: \d+
```

Where the controller was defined as...

```php
class PageController
{
    public function __invoke()
    {
        //
    }
}
```

This PR adds that support. Tests have been updated.

Commits
-------

f1d043a [HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector
2014-11-12 09:14:41 +01:00
James Halsall
f1d043a98a [HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector 2014-11-12 09:14:41 +01:00
Fabien Potencier
5decdd7734 minor #12449 fixed typo (ojhaujjwal)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12449).

Discussion
----------

fixed typo

Commits
-------

a7c2a9a fixed typo
2014-11-12 09:11:35 +01:00
Ujjwal Ojha
a7c2a9a623 fixed typo 2014-11-12 09:11:34 +01:00
Fabien Potencier
58eab0a3d4 minor #12450 [Translations] Added missing Hebrew language trans-unit sources (excelwebzone)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12450).

Discussion
----------

[Translations] Added missing Hebrew language trans-unit sources

[Form] [Validator] [Translations] added missing files
[Security][Translations] added missing files

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

Commits
-------

918b16b [Translations] Added missing Hebrew language trans-unit sources
2014-11-12 09:10:14 +01:00
Michael H. Arieli
918b16b16c [Translations] Added missing Hebrew language trans-unit sources 2014-11-12 09:10:13 +01:00
Fabien Potencier
0cbba7f317 bug #12393 [DependencyInjection] inlined factory not referenced (boekkooi)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12393).

Discussion
----------

[DependencyInjection] inlined factory not referenced

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

While working with the DI I encountered a `You have requested a non-existent service "xxxxx"` exception.
Research it seems that a private reference was inlined but the private factory that was also referencing to the service was ignored.

A example of the problem:
```XML
        <service id="manager"
                 class="\stdClass"
                 factory-method="getX"
                 factory-service="factory"
                 public="false">
            <argument>X</argument>
        </service>
        <service id="repository"
                 class="\stdClass"
                 factory-method="getRepository"
                 factory-service="manager"
                 public="false">
            <argument>X</argument>
        </service>
        <service id="storage" class="\stdClass" public="false">
            <argument type="service" id="manager"/>
            <argument type="service" id="repository"/>
        </service>
```

What happens before the patch:
1. repository get's inlined
2. manager get's inlined for the first argument
3. manager get's removed since there was no reference.

After the first commit the following will happen:
1. repository get's inlined
2. manager get's inlined for the first argument
3. manager will not be removed since the inlined repository still references manager

This introduced a smell since InlineServiceDefinitionsPass was still inlining the manager for the first argument.

To fix this I have chosen that not inline factories if they are used more then once by the same definition.

So after the second commit the following will happen:
1. repository get's inlined

Personally I feel that the InlineServiceDefinitionsPass patch isn't the best possible one but that a different fix would probably mean breaking BC so it's probably a good idea to look at this for Symfony 3.0.

Commits
-------

7816a98 [DependencyInjection] inlined factory not referenced
2014-11-12 08:52:53 +01:00
Warnar Boekkooi
7816a98204 [DependencyInjection] inlined factory not referenced 2014-11-12 08:52:52 +01:00
Fabien Potencier
85b016f37b minor #12403 [Routing] correctly initialize condition as string (Tobion)
This PR was merged into the 2.5 branch.

Discussion
----------

[Routing] correctly initialize condition as string

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

Commits
-------

ffe863c [Routing] correctly initialize condition as string
2014-11-09 08:53:45 +01:00
Fabien Potencier
ad74db9916 bug #12411 [VarDumper] Use Unicode Control Pictures (nicolas-grekas)
This PR was merged into the 2.6-dev branch.

Discussion
----------

[VarDumper] Use Unicode Control Pictures

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

I wasn't satisfied with how control chars where dumped, until I found the [Unicode Control Pictures](http://www.unicode.org/charts/PDF/U2400.pdf).
This PR takes advantage of them:

![capture du 2014-11-04 10 52 15](https://cloud.githubusercontent.com/assets/243674/4897678/752fac20-6408-11e4-9186-7b788c9a88bb.png)

Commits
-------

6258ae8 [DebugBundle] remove README.md
50021bd [Debug] No gc_collect_cycles(), it's costly and can segfault
b592e90 [VarDumper] inline dump() function loading
cd076e4 [VarDumper] Use Unicode Control Pictures
2014-11-09 08:50:20 +01:00
Fabien Potencier
4faf360653 minor #12422 Fixed whitespace control for password form widget (peterrehm)
This PR was merged into the 2.5 branch.

Discussion
----------

Fixed whitespace control for password form widget

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

When removing the spaceless tags the additional needed `-` has been forgotten for the password widget.

By the way, is in the {% tags the - at the end of the starting and at the beginning of the ending tag sufficient?
This does not correspond to the twig documentation where it is always documented on the beginning and at the end.

````php
{% block hidden_widget -%}
    {% set type = type|default('hidden') %}
    {{- block('form_widget_simple') -}}
{%- endblock hidden_widget -%}
````

Commits
-------

809cf24 Fixed whitespace control for password form widget
2014-11-09 08:46:24 +01:00
Fabien Potencier
1f55706be9 bug #12436 [Filesystem] Fixed case for empty folder (yosmanyga)
This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem] Fixed case for empty folder

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

The mirror function should work with an empty folder as source. It should create an empty folder on target path.

Commits
-------

5321741 Fixed case for empty folder
2014-11-09 08:44:54 +01:00
Fabien Potencier
5d8fbb86ce minor #12427 [SecurityBundle] Added AuthorizationChecker and TokenStorage to class cache (iltar)
This PR was merged into the 2.6-dev branch.

Discussion
----------

[SecurityBundle] Added AuthorizationChecker and TokenStorage to class cache

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| Tests pass?   | yes
| License       | MIT

I've added the new `AuthorizationChecker` and `TokenStorage` to the list of classes to compile. The `SecurityContext` was already in there, but the new ones were missing. They are added because if the `SecurityContext` is always loaded, those are always loaded as of `2.6`.

Commits
-------

d238397 [SecurityBundle] Added AuthorizationChecker and TokenStorage to class cache
2014-11-09 08:40:26 +01:00
Yosmany Garcia
5321741ab5 Fixed case for empty folder 2014-11-08 14:35:51 -05:00
Nicolas Grekas
6258ae863b [DebugBundle] remove README.md 2014-11-07 21:20:29 +01:00
Iltar van der Berg
d238397c9c [SecurityBundle] Added AuthorizationChecker and TokenStorage to class cache 2014-11-07 11:59:28 +01:00
Nicolas Grekas
50021bdeaa [Debug] No gc_collect_cycles(), it's costly and can segfault 2014-11-06 21:49:33 +01:00
Nicolas Grekas
b592e90177 [VarDumper] inline dump() function loading 2014-11-06 21:49:33 +01:00
Nicolas Grekas
cd076e4cb7 [VarDumper] Use Unicode Control Pictures 2014-11-06 21:49:33 +01:00
Fabien Potencier
f1c34f937d minor #12413 Remove aligned '=>' and '=' (disquedur)
This PR was merged into the 2.6-dev branch.

Discussion
----------

Remove aligned '=>' and '='

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | [https://github.com/symfony/symfony/issues/12284]
| License       | MIT

PR for 2.3 branch : https://github.com/symfony/symfony/pull/12293
PR for 2.5 branch : https://github.com/symfony/symfony/pull/12362

Commits
-------

ac1f2b7 Remove aligned '=>' and '='
2014-11-06 20:46:11 +01:00
Peter Rehm
809cf24675 Fixed whitespace control for password form widget 2014-11-06 13:46:31 +01:00
Disquedur
ac1f2b76d6 Remove aligned '=>' and '=' 2014-11-04 15:29:39 +01:00
Fabien Potencier
604fefcd38 bumped Symfony version to 2.6.0 2014-11-03 22:47:57 +01:00
Fabien Potencier
9919918de4 fixed version in HttpKernel 2014-11-03 22:46:45 +01:00
Tobias Schultze
ffe863c543 [Routing] correctly initialize condition as string 2014-11-03 21:24:10 +01:00
Fabien Potencier
7bd1d4c0e6 updated VERSION for 2.6.0-BETA1 2014-11-03 21:15:26 +01:00
Fabien Potencier
8ee36dce3f updated CHANGELOG for 2.6.0-BETA1 2014-11-03 21:10:45 +01:00
Fabien Potencier
ecddaf6e58 Merge branch '2.5'
* 2.5:
  fixed test that randomly fails
2014-11-03 20:49:01 +01:00
Fabien Potencier
1bba7995df fixed test that randomly fails 2014-11-03 20:48:45 +01:00
Fabien Potencier
923c13f974 Merge branch '2.5'
* 2.5:
  TwigExtractor tests require the Finder component
  [Routing] fix BC

Conflicts:
	src/Symfony/Bridge/Twig/composer.json
2014-11-03 20:16:49 +01:00
Fabien Potencier
03aa49156a Merge branch '2.3' into 2.5
* 2.3:
  TwigExtractor tests require the Finder component

Conflicts:
	src/Symfony/Bridge/Twig/composer.json
2014-11-03 20:16:17 +01:00
Fabien Potencier
d0e9e6573f minor #12385 [VarDumper] symfony.com color scheme on the CLI (nicolas-grekas)
This PR was merged into the 2.6-dev branch.

Discussion
----------

[VarDumper] symfony.com color scheme on the CLI

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

Commits
-------

d5620bf [VarDumper] symfony.com color scheme on the CLI
2014-11-03 18:58:01 +01:00
Fabien Potencier
4b01bc0ec4 minor #12384 [OptionsResolver] Documented BC break (webmozart)
This PR was merged into the 2.6-dev branch.

Discussion
----------

[OptionsResolver] Documented BC break

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

Commits
-------

0b0bfc0 [OptionsResolver] Documented BC break
2014-11-03 18:55:34 +01:00
Fabien Potencier
acd515b0ba bug #12397 [Routing] fix BC (nicolas-grekas)
This PR was merged into the 2.5 branch.

Discussion
----------

[Routing] fix BC

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

Tests on master and 2.5 are failing because this patch is missing.

Commits
-------

86e667b [Routing] fix BC
2014-11-03 18:54:02 +01:00
Fabien Potencier
08bebaba2c minor #12398 [TwigBridge] TwigExtractor tests require the Finder component (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[TwigBridge] TwigExtractor tests require the Finder component

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

The tests for the `TwigExtractor`(as introduced in #12377) require the Finder component to be run properly.

Commits
-------

8fc3e03 TwigExtractor tests require the Finder component
2014-11-03 18:52:52 +01:00