10000 Revert "merged branch Tobion/flattenexception (PR #9111)" · instaclick/symfony@e0d3573 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0d3573

Browse files
committed
Revert "merged branch Tobion/flattenexception (PR symfony#9111)"
This reverts commit 53b2048, reversing changes made to c60a8e9.
1 parent bc256f9 commit e0d3573

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Bundle\TwigBundle\Controller;
1313

1414
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
15-
use Symfony\Component\Debug\Exception\FlattenException;
15+
use Symfony\Component\HttpKernel\Exception\FlattenException;
1616
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Symfony\Component\HttpFoundation\Response;

src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ExceptionControllerTest extends TestCase
1919
{
2020
public function testOnlyClearOwnOutputBuffers()
2121
{
22-
$flatten = $this->getMock('Symfony\Component\Debug\Exception\FlattenException');
22+
$flatten = $this->getMock('Symfony\Component\HttpKernel\Exception\FlattenException');
2323
$flatten
2424
->expects($this->once())
2525
->method('getStatusCode')

src/Symfony/Component/HttpKernel/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;
1514
use Symfony\Component\HttpFoundation\Request;
1615
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\HttpKernel\Exception\FlattenException;
1717

1818
/**
1919
* ExceptionDataCollector.

src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\Debug\Exception\FlattenException;
1615
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1716
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
1817
use Symfony\Component\HttpKernel\KernelEvents;
1918
use Symfony\Component\HttpKernel\HttpKernelInterface;
19+
use Symfony\Component\HttpKernel\Exception\FlattenException;
2020
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
2121
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2222

src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php

Lines changed: 7 additions & 6 deletions
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;
1514
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

@@ -37,10 +37,11 @@ public function testCollect()
3737
$c->collect(new Request(), new Response(),$e);
3838

3939
$this->assertTrue($c->hasException());
40-
$this->assertEquals($flattened, $c->getException());
41-
$this->assertSame('foo', $c->getMessage());
42-
$this->assertSame(500, $c->getCode());
43-
$this->assertSame('exception', $c->getName());
44-
$this->assertSame($trace, $c->getTrace());
40+
$this->assertEquals($flattened,$c->getException());
41+
$this->assertSame('foo',$c->getMessage());
42+
$this->assertSame(500,$c->getCode());
43+
$this->assertSame('exception',$c->getName());
44+
$this->assertSame($trace,$c->getTrace());
4545
}
46+
4647
}

0 commit comments

Comments
 (0)
0