1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace GinoPane\AwesomeSocialLinks; |
4
|
|
|
|
5
|
|
|
use GinoPane\AwesomeSocialLinks\Components\LinkList; |
6
|
|
|
use System\Classes\PluginBase; |
|
|
|
|
7
|
|
|
use GinoPane\AwesomeSocialLinks\Models\Settings; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Class Plugin |
11
|
|
|
* |
12
|
|
|
* @package GinoPane\AwesomeSocialLinks |
13
|
|
|
*/ |
14
|
|
|
class Plugin extends PluginBase |
15
|
|
|
{ |
16
|
|
|
const DEFAULT_ICON = 'icon-users'; |
17
|
|
|
|
18
|
|
|
const LOCALIZATION_KEY = 'ginopane.awesomesociallinks::lang.'; |
19
|
|
|
|
20
|
|
|
public $require = [ |
21
|
|
|
'GinoPane.AwesomeIconsList' |
22
|
|
|
]; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Returns information about this plugin |
26
|
|
|
* |
27
|
|
|
* @return array |
28
|
|
|
*/ |
29
|
|
|
public function pluginDetails(): array |
30
|
|
|
{ |
31
|
|
|
return [ |
32
|
|
|
'name' => self::LOCALIZATION_KEY . 'plugin.name', |
33
|
|
|
'description' => self::LOCALIZATION_KEY . 'plugin.description', |
34
|
|
|
'author' => 'Siarhei <Gino Pane> Karavai', |
35
|
|
|
'icon' => self::DEFAULT_ICON, |
36
|
|
|
'homepage' => 'https://github.com/ginopane/oc-awesomesociallinks-plugin' |
37
|
|
|
]; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* Register components |
42
|
|
|
* |
43
|
|
|
* @return array |
44
|
|
|
*/ |
45
|
|
|
public function registerComponents(): array |
46
|
|
|
{ |
47
|
|
|
return [ |
48
|
|
|
LinkList::class => LinkList::NAME |
49
|
|
|
]; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Register plugin settings |
54
|
|
|
* |
55
|
|
|
* @return array |
56
|
|
|
*/ |
57
|
|
|
public function registerSettings(): array |
58
|
|
|
{ |
59
|
|
|
return [ |
60
|
|
|
'settings' => [ |
61
|
|
|
'label' => self::LOCALIZATION_KEY . 'settings.name', |
62
|
|
|
'description' => self::LOCALIZATION_KEY . 'settings.description', |
63
|
|
|
'icon' => self::DEFAULT_ICON, |
64
|
|
|
'class' => Settings::class, |
65
|
|
|
'order' => 100 |
66
|
|
|
] |
67
|
|
|
]; |
68
|
|
|
} |
69
|
|
|
} |
70
|
|
|
|
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