richardhj / contao-ajax_reload_element

AjaxReloadElement for Contao Open Source CMS
GNU Lesser General Public License v3.0
14 stars 5 forks source link

make service public #13

Closed fritzmg closed 5 years ago

fritzmg commented 5 years ago

Small oversight in my last PR: the service needs to be set to public manually, when not using the service tags. Otherwise you get the following error with Symfony >=4:

The "Richardhj\ContaoAjaxReloadElementBundle\EventListener\AjaxReloadElementListener" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.