You are here

interface DebuggerAwareInterface in Acquia Purge 8

Describes a Acquia purger which is debugging aware.

Hierarchy

Expanded class hierarchy of DebuggerAwareInterface

All classes that implement DebuggerAwareInterface

2 files declare their use of DebuggerAwareInterface
BackendInterface.php in src/AcquiaPlatformCdn/BackendInterface.php
DebuggerMiddleware.php in src/Http/DebuggerMiddleware.php

File

src/Plugin/Purge/Purger/DebuggerAwareInterface.php, line 8

Namespace

Drupal\acquia_purge\Plugin\Purge\Purger
View source
interface DebuggerAwareInterface {

  /**
   * Return existing debugger instance or instantiate new debugger.
   *
   * @warning
   *   Calls $this->logger() which must be able to return a logger.
   *
   * @return \Drupal\acquia_purge\Plugin\Purge\Purger\DebuggerInterface
   *   The debugger.
   */
  public function debugger();

  /**
   * Set the debugger instance.
   *
   * @param \Drupal\acquia_purge\Plugin\Purge\Purger\DebuggerInterface $debugger
   *   The debugger.
   * @param bool $throw
   *   Throw an exception when the debugger is already set.
   *
   * @throws \RuntimeException
   *   Thrown when the debugger was already instantiated.
   */
  public function setDebugger(DebuggerInterface $debugger, $throw = TRUE);

}

Members

Namesort descending Modifiers Type Description Overrides
DebuggerAwareInterface::debugger public function Return existing debugger instance or instantiate new debugger.
DebuggerAwareInterface::setDebugger public function Set the debugger instance.