src/Methods/ChainedMethod.php
public function exposeDirectory($source, $target)
    {
        $lastException = null;
        foreach ($this->failovers as $failover) {
            try {
                $failover->exposeDirectory($source, $target);
                return; // Return on first success
            } catch (RuntimeException $lastException) {
            }
        }
        if ($lastException) {
            throw $lastException;
        }
    }
public function exposeDirectory($source, $target)
    {
        $lastException = null;
        foreach ($this->failovers as $failover) {
            try {
                $failover->exposeDirectory($source, $target);
                return; // Return on first success
            } catch (RuntimeException $lastException) {
            }
        }
        if ($lastException) {
            throw $lastException;
        }
    }
public function exposeDirectory ( $ source , $ target ) { $ lastException = null ; foreach ( $ this -> failovers as $ failover ) { try { $ failover -> exposeDirectory ( $ source , $ target ) ; return ; // Return on first success } catch ( RuntimeException $ lastException ) { } } if ( $ lastException ) { throw $ lastException ; } }
Exposes the directory with the given paths

@param string $source Full filesystem path to file source
@param string $target Full filesystem path to the target directory
@throws RuntimeException If could not be exposed
Exposes the directory with the given paths