| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function get() : \Aimeos\Bootstrap |
||
| 44 | { |
||
| 45 | if( $this->object === null ) |
||
| 46 | { |
||
| 47 | $dir = base_path( 'ext' ); |
||
| 48 | |||
| 49 | if( !is_dir( $dir ) ) { |
||
| 50 | $dir = dirname( __DIR__, 4 ) . DIRECTORY_SEPARATOR . 'ext'; |
||
| 51 | } |
||
| 52 | |||
| 53 | $extDirs = (array) $this->config->get( 'shop.extdir', $dir ); |
||
| 54 | $this->object = new \Aimeos\Bootstrap( $extDirs, false ); |
||
| 55 | } |
||
| 56 | |||
| 57 | return $this->object; |
||
| 58 | } |
||
| 81 | } |