public function setup(array $conf = [])
    {
        if (empty($conf['filesystem'])) {
            throw new Exception('no filesystem configured');
        }
        $this->filesystem = $conf['filesystem'];
        $this->path       = !empty($conf['path']) ? $conf['path'] : '';
    }
public function setup(array $conf = [])
    {
        if (empty($conf['filesystem'])) {
            throw new Exception('no filesystem configured');
        }
        $this->filesystem = $conf['filesystem'];
        $this->path       = !empty($conf['path']) ? $conf['path'] : '';
    }
public function setup ( array $ conf = [ ] ) { if ( empty ( $ conf [ 'filesystem' ] ) ) { throw new Exception ( 'no filesystem configured' ) ; } $ this -> filesystem = $ conf [ 'filesystem' ] ; $ this -> path = ! empty ( $ conf [ 'path' ] ) ? $ conf [ 'path' ] : '' ; }
Setup the source.

@param  array $conf
@throws \phpbu\App\Exception
Setup the source .