summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/DestructableInterface.php
blob: fe39f8f3def95d79766bec5c14871a9f47c9c98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Drupal\Core;

/**
 * The interface for services that need explicit destruction.
 *
 * This is useful for services that need to perform additional tasks to
 * finalize operations or clean up after the response is sent and before the
 * service is terminated.
 *
 * Services using this interface need to be registered with the
 * "needs_destruction" tag.
 */
interface DestructableInterface {

  /**
   * Performs destruct operations.
   */
  public function destruct();

}