15 lines
418 B
PHP
15 lines
418 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
require_once __DIR__ . "/common.inc.php";
|
|
spl_autoload_register(function ($classname) {
|
|
require_once __DIR__ . "/classes/" . $classname . ".php";
|
|
});
|
|
if (isset($argv) and in_array("--init", $argv)) {
|
|
$rpc = new StaticRPC();
|
|
foreach ($rpc->getPlugins() as $plugin => $instance) {
|
|
/**
|
|
* @var IPluggable $instance
|
|
*/
|
|
$instance->onServerStarted();
|
|
}
|
|
} |