Skip to content
Snippets Groups Projects
Commit 3f59b3a6 authored by Andreas Hennings's avatar Andreas Hennings
Browse files

Remove xautoload_FinderPlugin_SkipModuleExists, which would not work anyway.

parent 599222e0
No related branches found
No related tags found
No related merge requests found
<?php
/**
* This class is not used anywhere in xautoload, but could be used by other
* modules.
*/
class xautoload_FinderPlugin_SkipModuleExists implements xautoload_FinderPlugin_Interface {
/**
* Expect a class Aaa_Bbb_Ccc_Ddd to be in Aaa/Bbb/Ccc/Ddd.php,
* but consider the PHP include_path setting.
*
* @param object $api
* The InjectedAPI object.
* @param string $path_fragment
* First part of the path, for instance "Aaa/Bbb/".
* @param string $path_suffix
* Second part of the path, for instance "Ccc/Ddd.php".
*/
function findFile($api, $path_fragment, $path_suffix) {
$path = $path_fragment . $path_suffix;
if ($api->suggestFile_skipModuleExists($path)) {
return TRUE;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment