Skip to content

Commit f501b24

Browse files
Merge branch '2.5' into 2.6
* 2.5: [2.3] Remove useless tests skips [ClassLoader] removes deprecated classes from documentation. [ClassLoader] added missing deprecation notice. [HttpFoundation] Fix an issue caused by php's Bug #66606. [Yaml] Update README.md Don't add Accept-Range header on unsafe HTTP requests simplify hasScheme method adapted merge to 2.5 adapted previous commit for 2.3 [Security] Don't send remember cookie for sub request [Security] fixed wrong phpdoc [HttpKernel] Fix UriSigner::check when _hash is not at the end of the uri [2.3] Cleanup deprecations Conflicts: src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig src/Symfony/Component/HttpKernel/composer.json
2 parents 50ae05a + f53fc2b commit f501b24

14 files changed

+49
-34
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CHANGELOG
2323

2424
* [BC BREAK] renamed `Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener` to `Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener` and changed its constructor
2525
* deprecated `Symfony\Component\HttpKernel\Debug\ErrorHandler`, `Symfony\Component\HttpKernel\Debug\ExceptionHandler`,
26-
`Symfony\Component\HttpKernel\Exception\FatalErrorException`, and `Symfony\Component\HttpKernel\Exception\FlattenException`
26+
`Symfony\Component\HttpKernel\Exception\FatalErrorException` and `Symfony\Component\HttpKernel\Exception\FlattenException`
2727
* deprecated `Symfony\Component\HttpKernel\Kernel::init()``
2828
* added the possibility to specify an id an extra attributes to hinclude tags
2929
* added the collect of data if a controller is a Closure in the Request collector

DataCollector/ExceptionDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\HttpKernel\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
16-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1717

1818
/**
1919
* ExceptionDataCollector.

EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\Debug\Exception\FlattenException;
1516
use Symfony\Component\HttpFoundation\Request;
1617
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1718
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
1819
use Symfony\Component\HttpKernel\KernelEvents;
1920
use Symfony\Component\HttpKernel\HttpKernelInterface;
20-
use Symfony\Component\HttpKernel\Exception\FlattenException;
2121
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
2222
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2323

Exception/FatalErrorException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FatalErrorException as DebugFatalErrorException;
15-
1614
/**
1715
* Fatal Error Exception.
1816
*
1917
* @author Konstanton Myakshin <koc-dp@yandex.ru>
2018
*
2119
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2220
*/
23-
class FatalErrorException extends DebugFatalErrorException
24-
{
25-
}
21+
class_exists('Symfony\Component\Debug\Exception\FatalErrorException');

Exception/FlattenException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
15-
1614
/**
1715
* FlattenException wraps a PHP Exception to be able to serialize it.
1816
*
@@ -22,6 +20,4 @@
2220
*
2321
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2422
*/
25-
class FlattenException extends DebugFlattenException
26-
{
27-
}
23+
class_exists('Symfony\Component\Debug\Exception\FlattenException');

Tests/DataCollector/ConfigDataCollectorTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public function registerBundles()
6969
{
7070
}
7171

72-
public function init()
73-
{
74-
}
75-
7672
public function getBundles()
7773
{
7874
return array();

Tests/DataCollector/ExceptionDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector;
15-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
1818

Tests/DataCollector/LoggerDataCollectorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\ErrorHandler;
1415
use Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector;
1516

1617
class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase

Tests/EventListener/LocaleListenerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ public function testLocaleSetForRoutingContext()
6767

6868
public function testRouterResetWithParentRequestOnKernelFinishRequest()
6969
{
70-
if (!class_exists('Symfony\Component\Routing\Router')) {
71-
$this->markTestSkipped('The "Routing" component is not available');
72-
}
73-
7470
// the request context is updated
7571
$context = $this->getMock('Symfony\Component\Routing\RequestContext');
7672
$context->expects($this->once())->method('setParameter')->with('_locale', 'es');

Tests/KernelTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ public function testHandleBootsTheKernel()
194194

195195
public function testStripComments()
196196
{
197-
if (!function_exists('token_get_all')) {
198-
$this->markTestSkipped('The function token_get_all() is not available.');
199-
200-
return;
201-
}
202197
$source = <<<'EOF'
203198
<?php
204199

0 commit comments

Comments
 (0)