Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function getProvider() |
||
34 | { |
||
35 | if( !isset( $this->fs ) ) |
||
36 | { |
||
37 | $config = $this->getConfig(); |
||
38 | |||
39 | if( !isset( $config['basedir'] ) ) { |
||
40 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'basedir' ) ); |
||
41 | } |
||
42 | |||
43 | $adapter = new Local( $config['basedir'], LOCK_EX, Local::SKIP_LINKS, $config ); |
||
44 | $this->fs = new Filesystem( $adapter ); |
||
45 | } |
||
46 | |||
47 | return $this->fs; |
||
48 | } |
||
50 |