mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12715] Update console command cache:purge comments
PHPBB3-12715
This commit is contained in:
parent
b6f3bf9b0c
commit
48b19ac37c
1 changed files with 23 additions and 0 deletions
23
phpBB/phpbb/console/command/cache/purge.php
vendored
23
phpBB/phpbb/console/command/cache/purge.php
vendored
|
@ -35,6 +35,16 @@ class purge extends \phpbb\console\command\command
|
||||||
/** @var \phpbb\config\config */
|
/** @var \phpbb\config\config */
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param \phpbb\cache\driver\driver_interface $cache Cache instance
|
||||||
|
* @param \phpbb\db\driver\driver_interface $db Database connection
|
||||||
|
* @param \phpbb\auth\auth $auth Auth instance
|
||||||
|
* @param \phpbb\log\log $log Logger instance
|
||||||
|
* @param \phpbb\user $user User instance
|
||||||
|
* @param \phpbb\config\config $config Config instance
|
||||||
|
*/
|
||||||
public function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user, \phpbb\config\config $config)
|
public function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user, \phpbb\config\config $config)
|
||||||
{
|
{
|
||||||
$this->cache = $cache;
|
$this->cache = $cache;
|
||||||
|
@ -46,6 +56,9 @@ class purge extends \phpbb\console\command\command
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
|
@ -54,6 +67,16 @@ class purge extends \phpbb\console\command\command
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Executes the command cache:purge.
|
||||||
|
*
|
||||||
|
* Purge the cache (including permissions) and increment the asset_version number
|
||||||
|
*
|
||||||
|
* @param InputInterface $input An InputInterface instance
|
||||||
|
* @param OutputInterface $output An OutputInterface instance
|
||||||
|
*
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
$this->config->increment('assets_version', 1);
|
$this->config->increment('assets_version', 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue