src/Aimeos/Shop/Base/I18n.php 1 location
|
@@ 66-68 (lines=3) @@
|
| 63 |
|
{ |
| 64 |
|
$i18n = new \Aimeos\MW\Translation\Gettext( $i18nPaths, $langid ); |
| 65 |
|
|
| 66 |
|
if( function_exists( 'apc_store' ) === true && $this->config->get( 'shop.apc_enabled', false ) == true ) { |
| 67 |
|
$i18n = new \Aimeos\MW\Translation\Decorator\APC( $i18n, $this->config->get( 'shop.apc_prefix', 'laravel:' ) ); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if( $this->config->has( 'shop.i18n.' . $langid ) ) { |
| 71 |
|
$i18n = new \Aimeos\MW\Translation\Decorator\Memory( $i18n, $this->config->get( 'shop.i18n.' . $langid ) ); |
src/Aimeos/Shop/Base/Context.php 1 location
|
@@ 149-151 (lines=3) @@
|
| 146 |
|
$configPaths = app( '\Aimeos\Shop\Base\Aimeos' )->get()->getConfigPaths(); |
| 147 |
|
$config = new \Aimeos\MW\Config\PHPArray( array(), $configPaths ); |
| 148 |
|
|
| 149 |
|
if( function_exists( 'apc_store' ) === true && $this->config->get( 'shop.apc_enabled', false ) == true ) { |
| 150 |
|
$config = new \Aimeos\MW\Config\Decorator\APC( $config, $this->config->get( 'shop.apc_prefix', 'laravel:' ) ); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
return new \Aimeos\MW\Config\Decorator\Memory( $config, $this->config->get( 'shop' ) ); |
| 154 |
|
} |