1 | <?php |
||
18 | class Configurator extends ConfiguratorBase |
||
19 | { |
||
20 | /** |
||
21 | * @var string Name of attribute used to for the replacement |
||
22 | */ |
||
23 | protected $attrName = 'char'; |
||
24 | |||
25 | /** |
||
26 | * @var string[] List of passes that have been explicitly disabled |
||
27 | */ |
||
28 | protected $disabledPasses = []; |
||
29 | |||
30 | /** |
||
31 | * @var string Name of the tag used to mark the text to replace |
||
32 | */ |
||
33 | protected $tagName = 'FP'; |
||
34 | |||
35 | /** |
||
36 | * Plugin's setup |
||
37 | * |
||
38 | * Will initialize create the plugin's tag if it does not exist |
||
39 | */ |
||
40 | 10 | protected function setUp() |
|
57 | |||
58 | /** |
||
59 | * Disable a given pass |
||
60 | * |
||
61 | * @param string $passName |
||
62 | * @return void |
||
63 | */ |
||
64 | 2 | public function disablePass($passName) |
|
68 | |||
69 | /** |
||
70 | * Enable a given pass |
||
71 | * |
||
72 | * @param string $passName |
||
73 | * @return void |
||
74 | */ |
||
75 | 1 | public function enablePass($passName) |
|
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | 5 | public function asConfig() |
|
99 | } |