UserFrosting API

ClearCacheCommand extends BaseCommand

ClearCache CLI Command.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

$io SymfonyStyle
$ci ContainerInterface
configure() {@inheritdoc} mixed
execute() {@inheritdoc} mixed
clearIlluminateCache() Flush the cached data from the cache service. mixed
clearTwigCache() Clear the Twig cache using the Twig CacheHelper class. bool
clearRouterCache() Clear the Router cache data file. bool
initialize() {@inheritdoc} mixed
setContainer() Setup the global container object. void
isProduction() Return if the app is in production mode. bool

Properties

Methods

configure()

{@inheritdoc}

protected configure( ) : mixed
Return values
mixed

execute()

{@inheritdoc}

protected execute( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

clearIlluminateCache()

Flush the cached data from the cache service.

protected clearIlluminateCache( ) : mixed
Return values
mixed

clearTwigCache()

Clear the Twig cache using the Twig CacheHelper class.

protected clearTwigCache( ) : bool
Return values
bool

true/false if operation is successfull

clearRouterCache()

Clear the Router cache data file.

protected clearRouterCache( ) : bool
Return values
bool

true/false if operation is successfull

initialize()

{@inheritdoc}

protected initialize( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

setContainer()

Setup the global container object.

public setContainer( $ci : ContainerInterface ) : void
Parameters
$ci : ContainerInterface

isProduction()

Return if the app is in production mode.

protected isProduction( ) : bool

@return bool True/False if the app is in production mode

Return values
bool

Search results