src/Manager.php
public function execute(Closure $callback)
    {
        foreach ($this->getServices() as $service) {
            try {
                return $callback($this->container->make($service));
            } catch (Exception $e) {
                // Move on
            }
        }

        throw new RuntimeException('Could not execute any service.');
    }
public function execute(Closure $callback)
    {
        foreach ($this->getServices() as $service) {
            try {
                return $callback($this->container->make($service));
            } catch (Exception $e) {
                // Move on
            }
        }

        throw new RuntimeException('Could not execute any service.');
    }
public function execute ( Closure $ callback ) { foreach ( $ this -> getServices ( ) as $ service ) { try { return $ callback ( $ this -> container -> make ( $ service ) ) ; } catch ( Exception $ e ) { // Move on } } throw new RuntimeException ( 'Could not execute any service.' ) ; }
Try to call all services in sequence.

@param  Closure $callback
@return mixed
Try to call all services in sequence .