php-cooper-config

CacheClearCommand extends ProjectCommand
in package

FinalYes

`cooper:cache:clear [--root=DIR] [--cache-dir=DIR]`: removes every compiled configuration file. Part of a deploy.

The cache directory is injectable because a framework keeps caches in its own place and loads with compiledCache pointing there; this must clear that directory, not the default one.

Table of Contents

Properties

$cacheDir  : string|null

Methods

__construct()  : mixed
configure()  : void
execute()  : int

Properties

Methods

__construct()

public __construct([string|null $projectRoot = null ][, string|null $cacheDir = null ]) : mixed
Parameters
$projectRoot : string|null = null

the project root unless --root says otherwise; null for the Composer root package's directory

$cacheDir : string|null = null

the cache directory unless --cache-dir says otherwise; null for <root>/var/cache/cooper-config

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int
On this page

Search results