6 * The interface for services that need explicit destruction.
8 * This is useful for services that need to perform additional tasks to
9 * finalize operations or clean up after the response is sent and before the
10 * service is terminated.
12 * Services using this interface need to be registered with the
13 * "needs_destruction" tag.
15 interface DestructableInterface {
18 * Performs destruct operations.
20 public function destruct();