Changeset View
Changeset View
Standalone View
Standalone View
src/phage/bootloader/PhagePHPAgentBootloader.php
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | if (!$this->bootSequence) { | ||||
); | ); | ||||
$main_sequence = new PhutilBallOfPHP(); | $main_sequence = new PhutilBallOfPHP(); | ||||
$root = phutil_get_library_root('arcanist'); | $root = phutil_get_library_root('arcanist'); | ||||
foreach ($files as $file) { | foreach ($files as $file) { | ||||
$main_sequence->addFile($root.'/'.$file); | $main_sequence->addFile($root.'/'.$file); | ||||
} | } | ||||
// NOTE: If we use id() here, we don't get a stack trace out of it when | // NOTE: If we use () here, we don't get a stack trace out of it when | ||||
// we call a nonexistent method from inside "execute()"? Not exactly sure | // we call a nonexistent method from inside "execute()"? Not exactly sure | ||||
// what's going on here, but just sweep it under the rug for now. | // what's going on here, but just sweep it under the rug for now. | ||||
$main_sequence->addText('$A = new PhagePHPAgent($I); $A->execute();'); | $main_sequence->addText('$A = new PhagePHPAgent($I); $A->execute();'); | ||||
$main_length = strlen($main_sequence->toString()); | $main_length = strlen($main_sequence->toString()); | ||||
$boot_sequence = new PhutilBallOfPHP(); | $boot_sequence = new PhutilBallOfPHP(); | ||||
$boot = ' | $boot = ' | ||||
Show All 28 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0