1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* |
4
|
|
|
* Advanced BBCode Box |
5
|
|
|
* |
6
|
|
|
* @copyright (c) 2015 Matt Friedman |
7
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0) |
8
|
|
|
* |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace vse\abbc3\migrations; |
12
|
|
|
|
13
|
|
|
use phpbb\db\migration\container_aware_migration; |
|
|
|
|
14
|
|
|
use vse\abbc3\core\bbcodes_installer; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* Helper for installing/updating bbcodes in migrations. |
18
|
|
|
*/ |
19
|
|
|
abstract class bbcodes_migration_base extends container_aware_migration |
20
|
|
|
{ |
21
|
|
|
/** |
22
|
|
|
* @var array An array of bbcodes data to install |
23
|
|
|
*/ |
24
|
|
|
protected static $bbcode_data; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Get the bbcodes installer object |
28
|
|
|
* |
29
|
|
|
* @return bbcodes_installer |
30
|
|
|
*/ |
31
|
|
|
public function get_bbcodes_installer() |
32
|
|
|
{ |
33
|
|
|
/** @var \phpbb\group\helper $group_helper */ |
34
|
|
|
$group_helper = $this->container->get('group_helper'); |
35
|
|
|
|
36
|
|
|
/** @var \phpbb\language\language $language */ |
37
|
|
|
$language = $this->container->get('language'); |
38
|
|
|
|
39
|
|
|
/** @var \phpbb\request\request $request */ |
40
|
|
|
$request = $this->container->get('request'); |
41
|
|
|
|
42
|
|
|
return new bbcodes_installer($this->db, $group_helper, $language, $request, $this->phpbb_root_path, $this->php_ext); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Wrapper for installing bbcodes in migrations |
47
|
|
|
*/ |
48
|
|
|
public function install_abbc3_bbcodes() |
49
|
|
|
{ |
50
|
|
|
$this->get_bbcodes_installer()->install_bbcodes(static::$bbcode_data); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* Wrapper for deleting bbcodes in migrations |
55
|
|
|
*/ |
56
|
|
|
public function delete_abbc3_bbcodes() |
57
|
|
|
{ |
58
|
|
|
$this->get_bbcodes_installer()->delete_bbcodes(static::$bbcode_data); |
59
|
|
|
} |
60
|
|
|
} |
61
|
|
|
|
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