FilesystemAdapter

in package
extends AbstractAdapter Implements PruneableInterface Uses FilesystemTrait

Interfaces, Classes & Used Traits

PruneableInterface
FilesystemTrait

Constants

mixed TTL_ONE_YEAR = 31556926

Methods

public__construct([string $namespace = 'phpdoc' ][, int $defaultLifetime = self::TTL_ONE_YEAR ]) : mixed

Parameters

$namespace : string = 'phpdoc'
$defaultLifetime : int = self::TTL_ONE_YEAR

Returns

mixed

Sets up the caching folder with the given namespace.

publicinit(string $namespace, string $directory) : void

With phpDocumentor you can set the caching folder in your configuration; this poses an interesting problem with the default FilesystemAdapter of Symfony as that only allows you to set the caching folder upon instantiation.

Parameters

$namespace : string
$directory : string