File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php namespace CodeIgniter \Commands \Cache ;
2+
3+ use CodeIgniter \CLI \BaseCommand ;
4+ use CodeIgniter \CLI \CLI ;
5+
6+ class ClearCache extends BaseCommand
7+ {
8+ /**
9+ * Command grouping.
10+ *
11+ * @var string
12+ */
13+ protected $ group = 'Cache ' ;
14+
15+ /**
16+ * The Command's name
17+ *
18+ * @var string
19+ */
20+ protected $ name = 'cache:clear ' ;
21+
22+ /**
23+ * the Command's short description
24+ *
25+ * @var string
26+ */
27+ protected $ description = 'Clears the current system caches. ' ;
28+
29+ /**
30+ * the Command's usage
31+ *
32+ * @var string
33+ */
34+ protected $ usage = 'cache:clear [driver] ' ;
35+
36+ /**
37+ * the Command's Arguments
38+ *
39+ * @var array
40+ */
41+ protected $ arguments = [
42+ 'driver ' => 'The cache driver to use ' ,
43+ ];
44+
45+ /**
46+ * Creates a new migration file with the current timestamp.
47+ *
48+ * @param array $params
49+ */
50+ public function run (array $ params = [])
51+ {
52+ dd ($ params );
53+ }
54+ }
You can’t perform that action at this time.
0 commit comments