src/ExtensionQueue.php
public function getService($service)
    {
        foreach ($this->queue as $extension) {
            $new = call_user_func($extension, $service, $this->container);

            if ($new) {
                $service = $new;
            }
        }

        return $service;
    }
public function getService($service)
    {
        foreach ($this->queue as $extension) {
            $new = call_user_func($extension, $service, $this->container);

            if ($new) {
                $service = $new;
            }
        }

        return $service;
    }
public function getService ( $ service ) { foreach ( $ this -> queue as $ extension ) { $ new = call_user_func ( $ extension , $ service , $ this -> container ) ; if ( $ new ) { $ service = $ new ; } } return $ service ; }
Gets the extended version of the service.

@param mixed $service
@return mixed
Gets the extended version of the service .