-1

I'm building a web app using Symfony2 with Assetic. I would like to make a manifest file , but I have to manually add the file names to the list.

I can use PHP to get all static files (in [app/Bundle]/Resources/public), so I can generate of list of those files easily. But the other files (stylesheets, javascripts and images) are being generated by Assetic.

Is there a way to get a list of those generated files, so I can add them to a manifest-file?

Stephan Vierkant
  • 9,674
  • 8
  • 61
  • 97
  • Not sure how to get the generated name but you could always set the output filename yourself using `{% javascripts '@AcmeFooBundle/Resources/public/js/*' output='js/compiled/main.js' %}` along with asset versioning for cache busting - http://symfony.com/doc/current/reference/configuration/framework.html#ref-framework-assets-version – qooplmao Oct 09 '14 at 08:22

1 Answers1

1

All files are registered in router

php app/console debug:router

You can see what the command is doing, by viewing the source: Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php. You can extract what you need.

Stephan Vierkant
  • 9,674
  • 8
  • 61
  • 97
valdas.mistolis
  • 1,313
  • 13
  • 14