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.
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: