Load default Sylius css/javascript from a custom controller

Hello everyone,

I made a simple Symfony form and have loaded it from a controller that extends the AbstractController from Symfony. The problem is that I don’t know how to load Sylius default CSS and Javascript for my form.

My controllers in Sylius usually extend the ResourceController so I can get all the resources and metadata parameters, but I don’t want to do it this way here. Is there a way to make my form look like others Sylius forms without extending from the ResourceController ?

Sorry if this is a stupid question, I’m a bit confused about how Sylius builds CSS and JS.
Thanks a lot for taking the time to read my post.