File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
class Signature implements CommentInterface
17
17
{
18
+ /**
19
+ * @var string
20
+ */
21
+ private $ instructionLink ;
22
+
23
+ /**
24
+ * @param string $instructionLink
25
+ */
26
+ public function __construct (
27
+ string $ instructionLink = ''
28
+ ) {
29
+ $ this ->instructionLink = $ instructionLink ;
30
+ }
31
+
18
32
/**
19
33
* Get comment for signature field of security txt extension.
20
34
*
@@ -24,7 +38,7 @@ class Signature implements CommentInterface
24
38
*/
25
39
public function getCommentText ($ elementValue ): string
26
40
{
27
- return "<a href='https://github.com/magento/security-package/blob/1.0-develop/Securitytxt/README.md ' target='_blank'>
41
+ return "<a href=' { $ this -> instructionLink } ' target='_blank'>
28
42
Read instructions on how to generate signature
29
43
</a> " ;
30
44
}
Original file line number Diff line number Diff line change 22
22
<argument name =" resultPageFactory" xsi : type =" object" >securitytxtResultPageFactory</argument >
23
23
</arguments >
24
24
</type >
25
- </config >
25
+ <type name =" Magento\Securitytxt\Model\Config\Signature" >
26
+ <arguments >
27
+ <argument name =" instructionLink" xsi : type =" string" >
28
+ https://github.com/magento/security-package/blob/1.0-develop/Securitytxt/README.md
29
+ </argument >
30
+ </arguments >
31
+ </type >
32
+ </config >
You can’t perform that action at this time.
0 commit comments