* conventions.
*/
class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterface {
+
/**
* @return array
*/
}
// Check for standalone action files; to match _civicrm_api_resolve(), only load the first one
- $loaded_files = []; // array($relativeFilePath => TRUE)
+ // array($relativeFilePath => TRUE)
+ $loaded_files = [];
$include_dirs = array_unique(explode(PATH_SEPARATOR, get_include_path()));
foreach ($include_dirs as $include_dir) {
foreach ([$camelName, 'Generic'] as $name) {
foreach ($iterator as $fileinfo) {
$file = $fileinfo->getFilename();
if (array_key_exists($file, $loaded_files)) {
- continue; // action provided by an earlier item on include_path
+ // action provided by an earlier item on include_path
+ continue;
}
$parts = explode(".", $file);