Skip to content

Commit f8618ba

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)