original_string: public static function createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null)
      {
          $opcache = new PhpFilesAdapter($namespace, $defaultLifetime, $directory, true);
          if (null !== $logger) {
              $opcache->setLogger($logger);
          }
  
          if (!self::$apcuSupported = self::$apcuSupported ?? ApcuAdapter::isSupported()) {
              return $opcache;
          }
  
          $apcu = new ApcuAdapter($namespace, (int) $defaultLifetime / 5, $version);
          if ('cli' === \PHP_SAPI && !filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
              $apcu->setLogger(new NullLogger());
          } elseif (null !== $logger) {
              $apcu->setLogger($logger);
          }
  
          return new ChainAdapter([$apcu, $opcache]);
      }
code: public static function createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null)
      {
          $opcache = new PhpFilesAdapter($namespace, $defaultLifetime, $directory, true);
          if (null !== $logger) {
              $opcache->setLogger($logger);
          }
  
          if (!self::$apcuSupported = self::$apcuSupported ?? ApcuAdapter::isSupported()) {
              return $opcache;
          }
  
          $apcu = new ApcuAdapter($namespace, (int) $defaultLifetime / 5, $version);
          if ('cli' === \PHP_SAPI && !filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
              $apcu->setLogger(new NullLogger());
          } elseif (null !== $logger) {
              $apcu->setLogger($logger);
          }
  
          return new ChainAdapter([$apcu, $opcache]);
      }
code_tokens: public static function createSystemCache ( $ namespace , $ defaultLifetime , $ version , $ directory , LoggerInterface $ logger = null ) { $ opcache = new PhpFilesAdapter ( $ namespace , $ defaultLifetime , $ directory , true ) ; if ( null !== $ logger ) { $ opcache -> setLogger ( $ logger ) ; } if ( ! self :: $ apcuSupported = self :: $ apcuSupported ?? ApcuAdapter :: isSupported ( ) ) { return $ opcache ; } $ apcu = new ApcuAdapter ( $ namespace , ( int ) $ defaultLifetime / 5 , $ version ) ; if ( 'cli' === \ PHP_SAPI && ! filter_var ( ini_get ( 'apc.enable_cli' ) , FILTER_VALIDATE_BOOLEAN ) ) { $ apcu -> setLogger ( new NullLogger ( ) ) ; } elseif ( null !== $ logger ) { $ apcu -> setLogger ( $ logger ) ; } return new ChainAdapter ( [ $ apcu , $ opcache ] ) ; }
docstring: Returns the best possible adapter that your runtime supports.
  
  Using ApcuAdapter makes system caches compatible with read-only filesystems.
  
  @param string               $namespace
  @param int                  $defaultLifetime
  @param string               $version
  @param string               $directory
  @param LoggerInterface|null $logger
  
  @return AdapterInterface
docstring_tokens: Returns the best possible adapter that your runtime supports .