ComponentRegistrarInterface.php 741 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Component;
  7. /**
  8. * @author Josh Di Fabio <joshdifabio@gmail.com>
  9. */
  10. interface ComponentRegistrarInterface
  11. {
  12. /**
  13. * Get list of registered Magento components
  14. *
  15. * Returns an array where key is fully-qualified component name and value is absolute path to component
  16. *
  17. * @param string $type
  18. * @return array
  19. */
  20. public function getPaths($type);
  21. /**
  22. * Get path of a component if it is already registered
  23. *
  24. * @param string $type
  25. * @param string $componentName
  26. * @return null|string
  27. */
  28. public function getPath($type, $componentName);
  29. }