ObjectManagerInterface.php 707 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface ObjectManagerInterface
  12. {
  13. /**
  14. * Create new object instance
  15. *
  16. * @param string $type
  17. * @param array $arguments
  18. * @return mixed
  19. */
  20. public function create($type, array $arguments = []);
  21. /**
  22. * Retrieve cached object instance
  23. *
  24. * @param string $type
  25. * @return mixed
  26. */
  27. public function get($type);
  28. /**
  29. * Configure object manager
  30. *
  31. * @param array $configuration
  32. * @return void
  33. */
  34. public function configure(array $configuration);
  35. }