Skip to content

Commit dbc38d1

Browse files
Merge branch '2.6' into 2.7
* 2.6: [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/Bridge/Twig/composer.json src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Bundle/TwigBundle/composer.json src/Symfony/Component/ClassLoader/UniversalClassLoader.php src/Symfony/Component/Debug/composer.json src/Symfony/Component/Form/ButtonBuilder.php src/Symfony/Component/HttpKernel/Exception/FatalErrorException.php src/Symfony/Component/HttpKernel/Exception/FlattenException.php src/Symfony/Component/HttpKernel/composer.json src/Symfony/Component/Security/composer.json src/Symfony/Component/Validator/composer.json
2 parents 85dc4e3 + f501b24 commit dbc38d1

13 files changed

+49
-30
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
@@ -13,15 +13,11 @@
1313

1414
trigger_error('Symfony\Component\HttpKernel\Exception\FatalErrorException is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
1515

16-
use Symfony\Component\Debug\Exception\FatalErrorException as DebugFatalErrorException;
17-
1816
/**
1917
* Fatal Error Exception.
2018
*
2119
* @author Konstanton Myakshin <[email protected]>
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 FatalErrorException extends DebugFatalErrorException
26-
{
27-
}
23+
class_exists('Symfony\Component\Debug\Exception\FatalErrorException');

Exception/FlattenException.php

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

1414
trigger_error('Symfony\Component\HttpKernel\Exception\FlattenException is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
1515

16-
use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
17-
1816
/**
1917
* FlattenException wraps a PHP Exception to be able to serialize it.
2018
*
@@ -24,6 +22,4 @@
2422
*
2523
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2624
*/
27-
class FlattenException extends DebugFlattenException
28-
{
29-
}
25+
class_exists('Symfony\Component\Debug\Exception\FlattenException');

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

Tests/Profiler/ProfilerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ public function testFindWorksWithInvalidDates()
6060

6161
protected function setUp()
6262
{
63-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
64-
$this->markTestSkipped('The "HttpFoundation" component is not available');
65-
}
66-
6763
if (!class_exists('SQLite3') && (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers()))) {
6864
$this->markTestSkipped('This test requires SQLite support in your environment');
6965
}

0 commit comments

Comments
 (0)