Layton/App.php
public function injectionClosure($controller, $decorators, $args = [])
    {
        foreach ($decorators as $decorator) {
            $controller = $decorator(
                $this->closureWrapper($controller)
            );
        }
        return $this->container->dependentService->call($controller, $args);
    }
public function injectionClosure($controller, $decorators, $args = [])
    {
        foreach ($decorators as $decorator) {
            $controller = $decorator(
                $this->closureWrapper($controller)
            );
        }
        return $this->container->dependentService->call($controller, $args);
    }
public function injectionClosure ( $ controller , $ decorators , $ args = [ ] ) { foreach ( $ decorators as $ decorator ) { $ controller = $ decorator ( $ this -> closureWrapper ( $ controller ) ) ; } return $ this -> container -> dependentService -> call ( $ controller , $ args ) ; }
Injection Types for Closure.

@param callback $controller
@param array $args

@return mixed
Injection Types for Closure .