@@ 87-101 (lines=15) @@ | ||
84 | * the shortcode. |
|
85 | * @throws RuntimeException If the config could not be processed. |
|
86 | */ |
|
87 | public function __construct( |
|
88 | $shortcode_tag, |
|
89 | ConfigInterface $config, |
|
90 | ShortcodeAttsParser $atts_parser, |
|
91 | DependencyManager $dependencies = null |
|
92 | ) { |
|
93 | ||
94 | Assert\that( $shortcode_tag )->string()->notEmpty(); |
|
95 | ||
96 | $this->processConfig( $config ); |
|
97 | ||
98 | $this->shortcode_tag = $shortcode_tag; |
|
99 | $this->atts_parser = $atts_parser; |
|
100 | $this->dependencies = $dependencies; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Register the shortcode handler function with WordPress. |
@@ 62-73 (lines=12) @@ | ||
59 | * need to be enqueued. |
|
60 | * @throws RuntimeException If the config could not be processed. |
|
61 | */ |
|
62 | public function __construct( |
|
63 | $shortcode_tag, |
|
64 | ConfigInterface $config, |
|
65 | DependencyManager $dependencies = null |
|
66 | ) { |
|
67 | Assert\that( $shortcode_tag )->string()->notEmpty(); |
|
68 | ||
69 | $this->processConfig( $config ); |
|
70 | ||
71 | $this->shortcode_tag = $shortcode_tag; |
|
72 | $this->dependencies = $dependencies; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * Register the shortcode UI handler function with WordPress. |