feature #12461 [HttpKernel] Removed deprecated Kernel::init() method (saro0h)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[HttpKernel] Removed deprecated Kernel::init() method

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | maybe
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Commits
-------

37b49e1 [HttpKernel] Removed deprecated Kernel::init() method
This commit is contained in:
Fabien Potencier 2014-11-16 18:35:02 +01:00
commit 7adb842b1f
5 changed files with 6 additions and 22 deletions

View File

@ -74,10 +74,6 @@ class AppKernel extends Kernel
return include $filename;
}
public function init()
{
}
public function getRootDir()
{
return __DIR__;

View File

@ -74,10 +74,6 @@ class AppKernel extends Kernel
return include $filename;
}
public function init()
{
}
public function getRootDir()
{
return __DIR__;

View File

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

View File

@ -84,15 +84,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface
if ($this->debug) {
$this->startTime = microtime(true);
}
$this->init();
}
/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Move your logic in the constructor instead.
*/
public function init()
{
}
public function __clone()

View File

@ -69,10 +69,6 @@ class KernelForTest extends Kernel
{
}
public function init()
{
}
public function getBundles()
{
return array();