ConfigInterface.php 659 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Interception config. Tells whether plugins have been added for type.
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Interception;
  9. /**
  10. * Interface \Magento\Framework\Interception\ConfigInterface
  11. *
  12. */
  13. interface ConfigInterface
  14. {
  15. /**
  16. * Check whether type has configured plugins
  17. *
  18. * @param string $type
  19. * @return bool
  20. */
  21. public function hasPlugins($type);
  22. /**
  23. * Initialize interception config
  24. *
  25. * @param array $classDefinitions
  26. * @return void
  27. */
  28. public function initialize($classDefinitions = []);
  29. }