All the globals which are set in here should be moved outside into the DIContainer.php because its an external dependency. The same is valid for the json_decode part further down.

Basically it should read: 
```php
$this->items[$name] = isset($vars[$name]) ? $vars[$name] : array();