xyNNN / GoogleTagManagerBundle

Google Tag Manager Bundle for Symfony 2
https://github.com/xyNNN/GoogleTagManagerBundle
GNU Lesser General Public License v3.0
27 stars 15 forks source link

fix: undefined method isMasterRequest on Symfony >= 5 #49

Closed charlienaud closed 1 year ago

charlienaud commented 1 year ago

Hi, This PR fix the following error that occurs on Symfony 5+ that use ResponseEvent instead of FilterResponseEvent

Attempted to call an undefined method named "isMasterRequest" of class "Symfony\Component\HttpKernel\Event\ResponseEvent".
Did you mean to call "isMainRequest"?
xyNNN commented 1 year ago

See https://github.com/xyNNN/GoogleTagManagerBundle/releases/tag/3.1.2 https://github.com/xyNNN/GoogleTagManagerBundle/releases/tag/4.0.2