1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Cache;
13
14 use ICanBoogie\I18n\FormattedString;
15
16 /**
17 * Configures the specified cache.
18 */
19 class ConfigOperation extends BaseOperation
20 {
21 protected function process()
22 {
23 $cache = $this->collection[$this->key];
24
25 $cache->config($this->request);
26
27 $this->response->message = new FormattedString('The cache %cache has been configured.', array('cache' => $this->key));
28
29 return $cache->config_preview;
30 }
31 }