For some reason ( AngularJS top secret js files ) I need to put behind a firewall my resources. But I don't know how to setup that the symfony way. I already tried to set a access_control on /web/myresources.js but the kernel does not handle it.
I'd like to do something like this :
- { path: ^/assets/admin/, role: ROLE_ADMIN }
To protect, for example : "/assets/admin/js/app.js".
Any ideas ? Thank you.
EDIT : I created a bundle to achieve that. It is not documented yet, but here is the repo :