EnvironmentInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App;
  7. use Magento\Framework\ObjectManager\FactoryInterface;
  8. use Magento\Framework\Interception\ObjectManager\ConfigInterface;
  9. use Magento\Framework\ObjectManager\ConfigLoaderInterface;
  10. /**
  11. * Interface for ObjectManager Environment
  12. */
  13. interface EnvironmentInterface
  14. {
  15. /**
  16. * Return name of running mode
  17. *
  18. * @return string
  19. */
  20. public function getMode();
  21. /**
  22. * Return config object
  23. *
  24. * @return ConfigInterface
  25. */
  26. public function getDiConfig();
  27. /**
  28. * Return factory object
  29. *
  30. * @param array $arguments
  31. * @return FactoryInterface
  32. */
  33. public function getObjectManagerFactory($arguments);
  34. /**
  35. * Return ConfigLoader object
  36. *
  37. * @return ConfigLoaderInterface
  38. */
  39. public function getObjectManagerConfigLoader();
  40. /**
  41. * @param ConfigInterface $diConfig
  42. * @param array &$sharedInstances
  43. * @return void
  44. */
  45. public function configureObjectManager(ConfigInterface $diConfig, &$sharedInstances);
  46. }