BrowscapCommand
extends Command
in package
Console command: browscap
Tags
Table of Contents
- $cacheManager : Manager
- Cache manager
- $guzzleService : GuzzleService
- Guzzle service
- __construct() : mixed
- Constructor
- checkCachePermissions() : void
- Display a warning message if generated files are not owned by the Apache user.
- configure() : void
- Configure the command.
- execute() : int
- Run the command.
Properties
$cacheManager
Cache manager
protected
Manager
$cacheManager
$guzzleService
Guzzle service
protected
GuzzleService
$guzzleService
Methods
__construct()
Constructor
public
__construct(Manager $cacheManager, GuzzleService $guzzleService) : mixed
Parameters
- $cacheManager : Manager
-
Cache manager
- $guzzleService : GuzzleService
-
Guzzle service
Return values
mixed —checkCachePermissions()
Display a warning message if generated files are not owned by the Apache user.
protected
checkCachePermissions(ConsoleLogger $logger, StorageInterface $browscapCache) : void
Parameters
- $logger : ConsoleLogger
-
Logger (for warning output)
- $browscapCache : StorageInterface
-
Browscap cache object
Tags
Return values
void —configure()
Configure the command.
protected
configure() : void
Return values
void —execute()
Run the command.
protected
execute(InputInterface $input, OutputInterface $output) : int
Note that there's also similar functionality in MaintenanceController.
Parameters
- $input : InputInterface
-
Input object
- $output : OutputInterface
-
Output object
Return values
int —0 for success