class ClearCacheController extends AbstractDeleteController

Traits

Properties

protected CacheClearCommand $command

Methods

ResponseInterface
handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

delete(ServerRequestInterface $request)

<p>Delete the resource.</p>

assertPermission($condition)

No description

assertCan(User $actor, string $ability, mixed $arguments = [])

No description

assertGuest(User $actor)

No description

assertRegistered(User $actor)

No description

assertAdmin(User $actor)

No description

__construct(CacheClearCommand $command)

No description

Details

ResponseInterface handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface

protected delete(ServerRequestInterface $request)

<p>Delete the resource.</p>

Parameters

ServerRequestInterface $request

protected assertPermission($condition)

Parameters

$condition

Exceptions

PermissionDeniedException

protected assertCan(User $actor, string $ability, mixed $arguments = [])

Parameters

User $actor
string $ability
mixed $arguments

Exceptions

PermissionDeniedException

protected assertGuest(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

protected assertRegistered(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

protected assertAdmin(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

__construct(CacheClearCommand $command)

Parameters

CacheClearCommand $command