You are here

interface ClassLoaderInterface in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/ClassLoader/ClassLoaderInterface.php \Drupal\xautoload\ClassLoader\ClassLoaderInterface

Behaves mostly like the Symfony ClassLoader classes.

Hierarchy

Expanded class hierarchy of ClassLoaderInterface

All classes that implement ClassLoaderInterface

2 files declare their use of ClassLoaderInterface
ClassFinderInterface.php in src/ClassFinder/ClassFinderInterface.php
XAutoloadUnitTestCase.php in lib/Drupal/xautoload/Tests/XAutoloadUnitTestCase.php

File

src/ClassLoader/ClassLoaderInterface.php, line 8

Namespace

Drupal\xautoload\ClassLoader
View source
interface ClassLoaderInterface {

  /**
   * Registers this instance as an autoloader.
   *
   * @param boolean $prepend
   *   If TRUE, the loader will be prepended. Otherwise, it will be appended.
   */
  function register($prepend = FALSE);

  /**
   * Unregister this instance as an autoloader.
   */
  function unregister();

  /**
   * Callback for class loading. This will include ("require") the file found.
   *
   * @param string $class
   *   The class to load.
   */
  function loadClass($class);

}

Members

Namesort descending Modifiers Type Description Overrides
ClassLoaderInterface::loadClass function Callback for class loading. This will include ("require") the file found. 3
ClassLoaderInterface::register function Registers this instance as an autoloader. 1
ClassLoaderInterface::unregister function Unregister this instance as an autoloader. 1