Merge branch '2.7'

* 2.7:
  [Security/Http] fix mock logger in test
  [Serializer] Fix XmlFileLoader test
  [2.6] silence deprecation notices in new components
  [2.5] silence deprecation notices in new components
  [VarDumper] Minor fix for the uniformity
  [TwigBundle] added missing absolute URL in Twig exceptions
This commit is contained in:
Nicolas Grekas 2014-12-25 11:29:59 +01:00
commit f333cb23de
8 changed files with 37 additions and 34 deletions

View File

@ -69,28 +69,34 @@
}
</style>
<ul class="alt">
{% for dump in collector.getDumps('html') %}
<li class="sf-dump sf-reset">
in
{% if dump.line %}
{% set link = dump.file|file_link(dump.line) %}
{% if link %}
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
{% if collector.dumpsCount %}
<ul class="alt">
{% for dump in collector.getDumps('html') %}
<li class="sf-dump sf-reset">
in
{% if dump.line %}
{% set link = dump.file|file_link(dump.line) %}
{% if link %}
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
{% else %}
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
{% endif %}
{% else %}
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
{{ dump.name }}
{% endif %}
{% else %}
{{ dump.name }}
{% endif %}
line {{ dump.line }}:
<a onclick="Sfdump.toggle(this)">▶</a>
<span class="sf-dump-compact">
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
</span>
line {{ dump.line }}:
<a onclick="Sfdump.toggle(this)">▶</a>
<span class="sf-dump-compact">
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
</span>
{{ dump.data|raw }}
</li>
{% endfor %}
</ul>
{{ dump.data|raw }}
</li>
{% endfor %}
</ul>
{% else %}
<p>
<em>No dumped variable</em>
</p>
{% endif %}
{% endblock %}

View File

@ -17,7 +17,7 @@
],
"require": {
"php": ">=5.3.3",
"symfony/dependency-injection" : "~2.5,>=2.5.3",
"symfony/dependency-injection" : "~2.6,>=2.6.2",
"symfony/config" : "~2.4",
"symfony/event-dispatcher": "~2.5",
"symfony/http-foundation": "~2.4,>=2.4.9",

View File

@ -1,7 +1,7 @@
{% extends 'TwigBundle::layout.html.twig' %}
{% block head %}
<link href="{{ asset('bundles/framework/css/exception.css') }}" rel="stylesheet" type="text/css" media="all" />
<link href="{{ asset('bundles/framework/css/exception.css', absolute=true) }}" rel="stylesheet" type="text/css" media="all" />
{% endblock %}
{% block title %}

View File

@ -110,10 +110,7 @@ class SimplePreAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
->will($this->returnValue($this->request))
;
$this->logger = $this->getMockBuilder('Symfony\Bridge\Monolog\Logger')
->disableOriginalConstructor()
->getMock()
;
$this->logger = $this->getMock('Psr\Log\LoggerInterface');
$this->securityContext = $this->getMockBuilder('Symfony\Component\Security\Core\SecurityContext')
->disableOriginalConstructor()

View File

@ -1,17 +1,17 @@
<?xml version="1.0" ?>
<serializer xmlns="http://symfony.com/schema/dic/serializer"
<serializer xmlns="http://symfony.com/schema/dic/serializer-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/serializer http://symfony.com/schema/dic/constraint-mapping/serializer-1.0.xsd">
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd">
<class name="Symfony\Component\Serializer\Tests\Fixtures\GroupDummy">
<attribute name="foo">
<group name="group1" />
<group name="group2" />
<group>group1</group>
<group>group2</group>
</attribute>
<attribute name="bar">
<group name="group2" />
<group>group2</group>
</attribute>
</class>

View File

@ -25,7 +25,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->loader = new XmlFileLoader(__DIR__.'/../../Fixtures/serializer.xml');
$this->loader = new XmlFileLoader(__DIR__.'/../../Fixtures/serialization.xml');
$this->metadata = new ClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\GroupDummy');
}

View File

@ -25,7 +25,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->loader = new YamlFileLoader(__DIR__.'/../../Fixtures/serializer.yml');
$this->loader = new YamlFileLoader(__DIR__.'/../../Fixtures/serialization.yml');
$this->metadata = new ClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\GroupDummy');
}