8000 [HttpKernel] Added deprecated error to init() · symfony/symfony@b5a315d · GitHub
[go: up one dir, main page]

Skip to content

Commit b5a315d

Browse files
Daniel Kolviknicolas-grekas
authored andcommitted
[HttpKernel] Added deprecated error to init()
1 parent 70012c1 commit b5a315d

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function __construct($environment, $debug)
9393
*/
9494
public function init()
9595
{
96+
trigger_error('The Kernel::init() method was deprecated in version 2.3 and will be removed in 3.0. Move your logic to the constructor instead.', E_USER_DEPRECATED);
9697
}
9798

9899
public function __clone()

0 commit comments

Comments
 (0)
0