@@ -34,33 +34,33 @@ |
||
| 34 | 34 | |
| 35 | 35 | class UpdateTheme extends UpdateJS { |
| 36 | 36 | |
| 37 | - /** @var IMimeTypeDetector */ |
|
| 38 | - protected $mimetypeDetector; |
|
| 37 | + /** @var IMimeTypeDetector */ |
|
| 38 | + protected $mimetypeDetector; |
|
| 39 | 39 | |
| 40 | - /** @var ICacheFactory */ |
|
| 41 | - protected $cacheFactory; |
|
| 40 | + /** @var ICacheFactory */ |
|
| 41 | + protected $cacheFactory; |
|
| 42 | 42 | |
| 43 | - public function __construct( |
|
| 44 | - IMimeTypeDetector $mimetypeDetector, |
|
| 45 | - ICacheFactory $cacheFactory |
|
| 46 | - ) { |
|
| 47 | - parent::__construct($mimetypeDetector); |
|
| 48 | - $this->cacheFactory = $cacheFactory; |
|
| 49 | - } |
|
| 43 | + public function __construct( |
|
| 44 | + IMimeTypeDetector $mimetypeDetector, |
|
| 45 | + ICacheFactory $cacheFactory |
|
| 46 | + ) { |
|
| 47 | + parent::__construct($mimetypeDetector); |
|
| 48 | + $this->cacheFactory = $cacheFactory; |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | - protected function configure() { |
|
| 52 | - $this |
|
| 53 | - ->setName('maintenance:theme:update') |
|
| 54 | - ->setDescription('Apply custom theme changes'); |
|
| 55 | - } |
|
| 51 | + protected function configure() { |
|
| 52 | + $this |
|
| 53 | + ->setName('maintenance:theme:update') |
|
| 54 | + ->setDescription('Apply custom theme changes'); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 58 | - // run mimetypelist.js update since themes might change mimetype icons |
|
| 59 | - parent::execute($input, $output); |
|
| 57 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 58 | + // run mimetypelist.js update since themes might change mimetype icons |
|
| 59 | + parent::execute($input, $output); |
|
| 60 | 60 | |
| 61 | - // cleanup image cache |
|
| 62 | - $c = $this->cacheFactory->createDistributed('imagePath'); |
|
| 63 | - $c->clear(''); |
|
| 64 | - $output->writeln('<info>Image cache cleared</info>'); |
|
| 65 | - } |
|
| 61 | + // cleanup image cache |
|
| 62 | + $c = $this->cacheFactory->createDistributed('imagePath'); |
|
| 63 | + $c->clear(''); |
|
| 64 | + $output->writeln('<info>Image cache cleared</info>'); |
|
| 65 | + } |
|
| 66 | 66 | } |