Adding "use" statement for dependency injection
PHP 5.3 can't use $this inside a closure
foreach loop isn't really needed here