In non-core should probably replace this with:

  $app = F::App()

and then use $app->wg->Global