CollectorInterface.php 647 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Deploy\Collector;
  7. use Magento\Deploy\Package\Package;
  8. /**
  9. * Interface CollectorInterface
  10. *
  11. * Collector returns packages with files which share same properties (e.g. area, theme, locale, etc)
  12. */
  13. interface CollectorInterface
  14. {
  15. /**
  16. * Retrieve all static files from registered locations split to packages.
  17. * Unique package is identified for each combination of three key scope identifiers:
  18. * - area
  19. * - theme
  20. * - locale
  21. *
  22. * @return Package[]
  23. */
  24. public function collect();
  25. }