private function hooks(SplObjectStorage $phars)
{
$hook = [];
foreach ($phars as $phar) {
if (isset($phar["pharext_package.php"])) {
$sdir = (include $phar["pharext_package.php"]);
if ($sdir instanceof SourceDir) {
$this->args->compile($sdir->getArgs());
$hook[] = $sdir;
}
}
}
return $hook;
}