dediagency / sylius-seo-plugin

Sylius SEO Plugin by Dedi.
26 stars 24 forks source link

Attempted to call an undefined method named "getMasterRequest" #51

Closed emorineaux closed 1 year ago

emorineaux commented 1 year ago

After install your plugin with sylius 1.12 and Symfony 6 I've got this error:

 In RichSnippetContext.php line 26:
!!                                                                                 
!!    Attempted to call an undefined method named "getMasterRequest" of class "Sy  
!!    mfony\Component\HttpFoundation\RequestStack".                                
!!    Did you mean to call e.g. "getMainRequest" or "getParentRequest"? 

Just change getMasterRequest by getMainRequest

JulienLoison commented 1 year ago

This is fixed in #55