I haven't checked it yet, but what happens when this instance is created earlier? For example, after view(), view_cell(), ..?
Or do you need to have a template engine in the services: User Manager, Sender, Auth...?
Initialization will be called earlier and may not be the one that is needed.
UPD: This method is not suitable for calling in filters. As well as the creation in the constructor. The folder does not change, I probably have initialization of services somewhere before