DestructableInterface.php 489 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Core;
  3. /**
  4. * The interface for services that need explicit destruction.
  5. *
  6. * This is useful for services that need to perform additional tasks to
  7. * finalize operations or clean up after the response is sent and before the
  8. * service is terminated.
  9. *
  10. * Services using this interface need to be registered with the
  11. * "needs_destruction" tag.
  12. */
  13. interface DestructableInterface {
  14. /**
  15. * Performs destruct operations.
  16. */
  17. public function destruct();
  18. }