assets.php 935 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. $container->loadFromExtension('framework', array(
  3. 'assets' => array(
  4. 'version' => 'SomeVersionScheme',
  5. 'base_urls' => 'http://cdn.example.com',
  6. 'version_format' => '%%s?version=%%s',
  7. 'packages' => array(
  8. 'images_path' => array(
  9. 'base_path' => '/foo',
  10. ),
  11. 'images' => array(
  12. 'version' => '1.0.0',
  13. 'base_urls' => array('http://images1.example.com', 'http://images2.example.com'),
  14. ),
  15. 'foo' => array(
  16. 'version' => '1.0.0',
  17. 'version_format' => '%%s-%%s',
  18. ),
  19. 'bar' => array(
  20. 'base_urls' => array('https://bar2.example.com'),
  21. ),
  22. 'bar_null_version' => array(
  23. 'version' => null,
  24. 'base_urls' => array('https://bar3.example.com'),
  25. ),
  26. ),
  27. ),
  28. ));