Added deprecated error to init()

| Q             | A
| ------------- | ---
| Fixed tickets | [#12622]
| License       | MIT
That won't work as the init() method is called in the __construct method above, so the warning will always be displayed.