WithKillswitch.php in X Autoload 7.2
File
lib/Plugin/WithKillswitch.phpView source
<?php
/**
* X Autoload plugins are for:
* - More exotic autoload patterns that are incompatible with PSR-0 or PEAR
* - Situations where we don't want to register a ton of namespaces, and using
* a plugin instead gives us performance benefits.
*/
abstract class xautoload_Plugin_WithKillswitch implements xautoload_Plugin_Interface {
protected $map;
protected $key;
protected $id;
/**
* Allow the namespace plugin to unsubscribe or replace itself.
* This is called by the ClassFinder itself, the moment the namespace plugin
* is registered.
*
* @param xautoload_ClassFinder_Helper_Map $map
* Object where the thing is subscribed.
*/
function setKillswitch($map, $key, $id) {
$this->map = $map;
$this->key = $key;
$this->id = $id;
}
}
Classes
Name | Description |
---|---|
xautoload_Plugin_WithKillswitch | X Autoload plugins are for: |