10000 [HttpKernel] Removed deprecated Kernel::init() method · symfony/symfony@37b49e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37b49e1

Browse files
committed
[HttpKernel] Removed deprecated Kernel::init() method
1 parent d8f839d commit 37b49e1

File tree

5 files changed

+6
-22
lines changed

5 files changed

+6
-22
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function registerBundles()
7474
return include $filename;
7575
}
7676

77-
public function init()
78-
{
79-
}
80-
8177
public function getRootDir()
8278
{
8379
return __DIR__;

src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function registerBundles()
7474
return include $filename;
7575
}
7676

77-
public function init()
78-
{
79-
}
80-
8177
public function getRootDir()
8278
{
8379
return __DIR__;

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
3.0.0
5+
-----
6+
7+
* Removed `Symfony\Component\HttpKernel\Kernel::init()`
8+
49
2.6.0
510
-----
611

@@ -24,7 +29,7 @@ CHANGELOG
2429
* [BC BREAK] renamed `Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener` to `Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener` and changed its constructor
2530
* deprecated `Symfony\Component\HttpKernel\Debug\ErrorHandler`, `Symfony\Component\HttpKernel\Debug\ExceptionHandler`,
2631
`Symfony\Component\HttpKernel\Exception\FatalErrorException`, and `Symfony\Component\HttpKernel\Exception\FlattenException`
27-
* deprecated `Symfony\Component\HttpKernel\Kernel::init()``
32+
* deprecated `Symfony\Component\HttpKernel\Kernel::init()`
2833
* added the possibility to specify an id an extra attributes to hinclude tags
2934
* added the collect of data if a controller is a Closure in the Request collector
3035
* pass exceptions from the ExceptionListener to the logger using the logging context to allow for more

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ public function __construct($environment, $debug)
8484
if ($this->debug) {
8585
$this->startTime = microtime(true);
8686
}
87-
88-
$this->init();
89-
}
90-
91-
/**
92-
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Move your logic in the constructor instead.
93-
*/
94-
public function init()
95-
{
9687
}
9788

9889
public function __clone()

src/Symfony/Component/HttpKernel/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();

0 commit comments

Comments
 (0)
0