final class CacheClearCommand extends Command (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Constants

NAME

EVENT_CLEAR

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

__construct(CacheFactoryInterface $cacheFactory, CacheTagsInvalidatorInterface $invalidator, Registry $themeRegistry, RouteBuilderInterface $routerBuilder, JsCollectionOptimizerLazy $jsOptimizer, $cssOptimizer, CachedDiscoveryClearerInterface $pluginCacheClearer, BootstrapManager $bootstrapManager, AssetQueryStringInterface $assetQueryString, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger)

No description

void
configure()

No description

void
interact(InputInterface $input, OutputInterface $output)

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

array
getTypes()

Types of caches available for clearing. Listeners can add their own.

void
clearBins($args = ['default'])

Clear one or more cache bins.

void
clearThemeRegistry()

No description

void
clearRouter()

No description

void
clearCssJs()

No description

void
clearContainer()

No description

void
clearRender()

Clears the render cache entries.

void
clearPlugin()

No description

void
clearViews()

No description

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

__construct(CacheFactoryInterface $cacheFactory, CacheTagsInvalidatorInterface $invalidator, Registry $themeRegistry, RouteBuilderInterface $routerBuilder, JsCollectionOptimizerLazy $jsOptimizer, $cssOptimizer, CachedDiscoveryClearerInterface $pluginCacheClearer, BootstrapManager $bootstrapManager, AssetQueryStringInterface $assetQueryString, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger)

No description

Parameters

CacheFactoryInterface $cacheFactory
CacheTagsInvalidatorInterface $invalidator
Registry $themeRegistry
RouteBuilderInterface $routerBuilder
JsCollectionOptimizerLazy $jsOptimizer
$cssOptimizer
CachedDiscoveryClearerInterface $pluginCacheClearer
BootstrapManager $bootstrapManager
AssetQueryStringInterface $assetQueryString
EventDispatcherInterface $eventDispatcher
LoggerInterface $logger

protected void configure()

No description

Return Value

void

protected void interact(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

void

int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

array getTypes()

Types of caches available for clearing. Listeners can add their own.

Return Value

array

void clearBins($args = ['default'])

Clear one or more cache bins.

Parameters

$args

Return Value

void

void clearThemeRegistry()

No description

Return Value

void

void clearRouter()

No description

Return Value

void

void clearCssJs()

No description

Return Value

void

void clearContainer()

No description

Return Value

void

void clearRender()

Clears the render cache entries.

Return Value

void

void clearPlugin()

No description

Return Value

void

void clearViews()

No description

Return Value

void