| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function get( string $type = 'frontend' ) : \Aimeos\MW\Config\Iface |
||
| 46 | { |
||
| 47 | $paths = $this->container->get( 'aimeos' )->getConfigPaths(); |
||
| 48 | $config = new \Aimeos\MW\Config\PHPArray( array(), $paths ); |
||
| 49 | |||
| 50 | if( function_exists( 'apcu_store' ) === true && $config->get( 'apc_enabled', false ) == true ) { |
||
| 51 | $config = new \Aimeos\MW\Config\Decorator\APC( $config, $config->get( 'apc_prefix', 'slim:' ) ); |
||
| 52 | } |
||
| 53 | |||
| 54 | $config = new \Aimeos\MW\Config\Decorator\Memory( $config, (array) $this->settings ); |
||
| 55 | |||
| 56 | if( isset( $this->settings[$type] ) ) { |
||
| 57 | $config = new \Aimeos\MW\Config\Decorator\Memory( $config, (array) $this->settings[$type] ); |
||
| 58 | } |
||
| 59 | |||
| 60 | return $config; |
||
| 61 | } |
||
| 63 |