Why not

```php
$wg = F::app()->wg;
```