MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

Symfony 4 compatibility: "templating" service #1342

Closed richardhj closed 5 years ago

richardhj commented 5 years ago

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment - check Contao Manager or use composer show)

Key Value Comments
PHP version: 7.3
Contao version: 4.8
MetaModels version: 2.1
Installed MetaModels packages:
DCG version:

Issue description

When updating to Symfony 4, the following error occurs:

The service "metamodels.controller.inputscreen.add_all" has a dependency on a non-existent service "templating".

the solution is to add the following to the config:

templating:
    engines:
        twig

This ticket belongs to MetaModels or Contao core?

dmolineus commented 5 years ago

The template service is deprecated. I propose to inject twig directly

richardhj commented 5 years ago

Ah, thanks for the hint, I will look into it.