| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | public function get( $type = 'frontend' ) |
||
| 52 | { |
||
| 53 | $configPaths = $this->aimeos->get()->getConfigPaths(); |
||
| 54 | $config = new \Aimeos\MW\Config\PHPArray( array(), $configPaths ); |
||
| 55 | |||
| 56 | if( function_exists( 'apc_store' ) === true && $this->config->get( 'shop.apc_enabled', false ) == true ) { |
||
| 57 | $config = new \Aimeos\MW\Config\Decorator\APC( $config, $this->config->get( 'shop.apc_prefix', 'laravel:' ) ); |
||
| 58 | } |
||
| 59 | |||
| 60 | $config = new \Aimeos\MW\Config\Decorator\Memory( $config, $this->config->get( 'shop' ) ); |
||
| 61 | |||
| 62 | if( ( $conf = $this->config->get( 'shop.' . $type, array() ) ) !== array() ) { |
||
| 63 | $config = new \Aimeos\MW\Config\Decorator\Memory( $config, $conf ); |
||
| 64 | } |
||
| 65 | |||
| 66 | return $config; |
||
| 67 | } |
||
| 68 | } |
||
| 69 |