Skip to content

Commit de69a87

Browse files
committed
HttpKernel name can't be imported twice, if importing only Symfony\Component\HttpKernel\HttpKernel there will be problems later with HttpKernel subclasses (HttpKernel\Controller\ControllerResolver first and the others following). Could use 'use ... as ...' but I don't like it.
1 parent 1f43dbf commit de69a87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

book/part12.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ some code from the front controller to it::
1212

1313
namespace Simplex;
1414

15-
use Symfony\Component\HttpKernel\HttpKernel;
1615
use Symfony\Component\Routing;
1716
use Symfony\Component\HttpKernel;
1817
use Symfony\Component\EventDispatcher\EventDispatcher;
1918

20-
class Framework extends HttpKernel
19+
class Framework extends HttpKernel\HttpKernel
2120
{
2221
public function __construct($routes)
2322
{

0 commit comments

Comments
 (0)