ContainerAwareInterface.php 687 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Symfony\Component\DependencyInjection;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * ContainerAwareInterface should be implemented by classes that depends on a Container.
  13. *
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. */
  16. interface ContainerAwareInterface
  17. {
  18. /**
  19. * Sets the Container.
  20. *
  21. * @param ContainerInterface $container A ContainerInterface instance
  22. */
  23. function setContainer(ContainerInterface $container = null);
  24. }