Add skip option to modules
4 unresolved threads
4 unresolved threads
Closes #3490355
Merge request reports
Activity
added 2 commits
225 225 && $this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER] === ExtensionLifecycle::OBSOLETE); 226 226 } 227 227 228 /** 229 * Sets procedural value. 230 */ 231 public function setProceduralScan(string $scan) { 232 $this->info[ExtensionHookStatus::PROCEDURAL_HOOKS] = $scan; 233 } 234 235 /** 236 * Checks if an extension should skip procedural hooks. 237 * 238 * @return string 239 * FALSE if an extension has procedural hooks, TRUE otherwise. 462 463 $file = $fileinfo->openFile('r'); 463 while (!$type && !$file->eof()) { 464 preg_match('@^type:\s*(\'|")?(\w+)\1?\s*(?:\#.*)?$@', $file->fgets(), $matches); 465 if (isset($matches[2])) { 466 $type = $matches[2]; 464 while ((!$type || !$procedural_hooks) && !$file->eof()) { 465 $line = $file->fgets(); 466 467 if (!$type) { 468 preg_match('@^type:\s*(\'|")?(\w+)\1?\s*(?:\#.*)?$@', $line, $matches); 469 if (isset($matches[2])) { 470 $type = $matches[2]; 471 } 472 } 473 474 if (!$procedural_hooks) { 497 515 } 498 516 499 517 $extension = new Extension($this->root, $extension_arguments['type'], $extension_arguments['pathname'], $extension_arguments['filename']); 518 $extension->setProceduralScan($extension_arguments['procedural_hooks']); 153 155 * @param $module_preg 154 156 * A regular expression matching every module, longer module names are 155 157 * matched first. 158 * @param $procedural_hook_status changed this line in version 7 of the diff
Please register or sign in to reply