You are here

DeployAuthenticator.inc in Deploy - Content Staging 7.3

Same filename and directory in other branches
  1. 7.2 includes/DeployAuthenticator.inc

Interface definition for deploy authenticators.

File

includes/DeployAuthenticator.inc
View source
<?php

/**
 * @file
 * Interface definition for deploy authenticators.
 */

/**
 * Interface for deploy authenticators.
 */
interface DeployAuthenticator {

  /**
   * Constructor for a deploy authenticator.
   *
   * @param DeployService $service
   *   The service object that we need to authenticate for.
   *
   * @param array $config
   *   An associative array representing the configration options for the
   *   authenticator.
   */
  public function __construct(DeployService $service, array $config = array());

  /**
   * Initiates an authenticated deployment.
   *
   * @param Traversable $iterator
   *   Usually this will be an object from a subclass of DeployAggregatorBase.
   */
  public function deploy(Traversable $iterator);

  /**
   * Defines the configuration form for the authenticator.
   *
   * @param array $form_state
   *   The complete form state.
   *
   * @return array
   *   An array representing the configuation form.
   */
  public function configForm(&$form_state);

}

/**
 * Exception thrown when authentication fails.
 */
class DeployAuthenticationException extends Exception {

}

Classes

Namesort descending Description
DeployAuthenticationException Exception thrown when authentication fails.

Interfaces

Namesort descending Description
DeployAuthenticator Interface for deploy authenticators.