Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • ConfigCache
  • FileLocator

Interfaces

  • FileLocatorInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class ConfigCache

ConfigCache manages PHP cache files.

When debug is enabled, it knows when to flush the cache thanks to an array of ResourceInterface instances.

Namespace: Symfony\Component\Config
Author: Fabien Potencier <fabien@symfony.com>
Located at config/Symfony/Component/Config/ConfigCache.php
Methods summary
public
# __construct( string $file, Boolean $debug )

Constructor.

Constructor.

Parameters

$file
string
$file The absolute cache path
$debug
Boolean
$debug Whether debugging is enabled or not
public string
# __toString( )

Gets the cache file path.

Gets the cache file path.

Returns

string
The cache file path
public Boolean
# isFresh( )

Checks if the cache is still fresh.

Checks if the cache is still fresh.

This method always returns true when debug is off and the cache file exists.

Returns

Boolean
true if the cache is fresh, false otherwise
public
# write( string $content, array $metadata = null )

Writes cache.

Writes cache.

Parameters

$content
string
$content The content to write in the cache
$metadata
Symfony\Component\Config\Resource\ResourceInterface[]
$metadata An array of ResourceInterface instances

Throws

RuntimeException
When cache file can't be wrote
php-coveralls API documentation generated by ApiGen 2.8.0