1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Apps\Controller\Admin; |
4
|
|
|
|
5
|
|
|
use Apps\ActiveRecord\ContentCategory; |
6
|
|
|
use Apps\Model\Admin\Content\FormSettings; |
7
|
|
|
use Extend\Core\Arch\AdminController; |
8
|
|
|
use Ffcms\Core\App; |
9
|
|
|
use Ffcms\Core\Exception\NotFoundException; |
10
|
|
|
use Ffcms\Core\Exception\SyntaxException; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Class Content. Admin controller to manage & control contents |
14
|
|
|
* @package Apps\Controller\Admin |
15
|
|
|
*/ |
16
|
|
|
class Content extends AdminController |
17
|
|
|
{ |
18
|
|
|
const VERSION = '1.0.0'; |
19
|
|
|
const ITEM_PER_PAGE = 10; |
20
|
|
|
|
21
|
|
|
public $type = 'app'; |
22
|
|
|
|
23
|
|
|
// import heavy actions |
24
|
|
|
use Content\ActionIndex { |
25
|
|
|
index as actionIndex; |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
use Content\ActionUpdate { |
29
|
|
|
update as actionUpdate; |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
use Content\ActionDelete { |
33
|
|
|
delete as actionDelete; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
use Content\ActionRestore { |
37
|
|
|
restore as actionRestore; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
use Content\ActionClear { |
41
|
|
|
clear as actionClear; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
use Content\ActionCategoryList { |
45
|
|
|
contentCategoryList as actionCategories; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
use Content\ActionCategoryDelete { |
49
|
|
|
categoryDelete as actionCategorydelete; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
use Content\ActionCategoryUpdate { |
53
|
|
|
categoryUpdate as actionCategoryupdate; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
use Content\ActionGlobDelete { |
57
|
|
|
globDelete as actionGlobdelete; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
use Content\ActionPublish { |
61
|
|
|
publish as actionPublish; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
use Content\ActionDisplayChange { |
|
|
|
|
65
|
|
|
display as actionDisplay; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
use Content\ActionImportantChange { |
|
|
|
|
69
|
|
|
important as actionImportant; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
use Content\ActionSettings { |
|
|
|
|
73
|
|
|
settings as actionSettings; |
74
|
|
|
} |
75
|
|
|
} |
76
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths