File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ class Files extends \Tatter\Files\Config\Files
19
19
*/
20
20
public $ storagePath = WRITEPATH . 'files/ ' ;
21
21
22
+ /**
23
+ * Whether to include routes to the Files Controller.
24
+ *
25
+ * @var boolean
26
+ */
27
+ public $ routeFiles = true ;
28
+
22
29
/**
23
30
* Layouts to use for general access and for administration
24
31
*
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ class Files extends BaseConfig
11
11
*/
12
12
public $ storagePath = WRITEPATH . 'files/ ' ;
13
13
14
+ /**
15
+ * Whether to include routes to the Files Controller.
16
+ *
17
+ * @var boolean
18
+ */
19
+ public $ routeFiles = true ;
20
+
14
21
/**
15
22
* Layouts to use for general access and for administration
16
23
*
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ if (empty (config ('Files ' )->routeFiles ))
4
+ {
5
+ return ;
6
+ }
7
+
3
8
// Routes to Files controller
4
9
$ routes ->group ('files ' , ['namespace ' => '\Tatter\Files\Controllers ' ], function ($ routes )
5
10
{
You can’t perform that action at this time.
0 commit comments