reference/phar/Phar/setSignatureAlgorithm.xml
f03806fcd8fe03a0501bd40b6e3939ff6589a1d2
...
...
@@ -3,15 +3,15 @@
3
3
<refentry xml:id="phar.setsignaturealgorithm" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
<refnamediv>
5
5
<refname>Phar::setSignatureAlgorithm</refname>
6
-
<refpurpose>set the signature algorithm for a phar and apply it.</refpurpose>
6
+
<refpurpose>Set the signature algorithm for a phar and apply it</refpurpose>
7
7
</refnamediv>
8
8

9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
-
<methodsynopsis>
11
+
<methodsynopsis role="Phar">
12
12
<modifier>public</modifier> <type>void</type><methodname>Phar::setSignatureAlgorithm</methodname>
13
-
<methodparam><type>int</type><parameter>sigtype</parameter></methodparam>
14
-
<methodparam choice="opt"><type>string</type><parameter>privatekey</parameter></methodparam>
13
+
<methodparam><type>int</type><parameter>algo</parameter></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>privateKey</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
&phar.write;
17
17

...
...
@@ -35,7 +35,7 @@
35
35
<para>
36
36
<variablelist>
37
37
<varlistentry>
38
-
<term><parameter>sigtype</parameter></term>
38
+
<term><parameter>algo</parameter></term>
39
39
<listitem>
40
40
<para>
41
41
One of <literal>Phar::MD5</literal>,
...
...
@@ -45,7 +45,7 @@
45
45
</listitem>
46
46
</varlistentry>
47
47
<varlistentry>
48
-
<term><parameter>privatekey</parameter></term>
48
+
<term><parameter>privateKey</parameter></term>
49
49
<listitem>
50
50
<para>
51
51
The contents of an OpenSSL private key, as extracted from a certificate or
...
...
@@ -86,6 +86,28 @@ $p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
86
86
</para>
87
87
</refsect1>
88
88

89
+
<refsect1 role="changelog">
90
+
&reftitle.changelog;
91
+
<informaltable>
92
+
<tgroup cols="2">
93
+
<thead>
94
+
<row>
95
+
<entry>&Version;</entry>
96
+
<entry>&Description;</entry>
97
+
</row>
98
+
</thead>
99
+
<tbody>
100
+
<row>
101
+
<entry>8.0.0</entry>
102
+
<entry>
103
+
<parameter>privateKey</parameter> is now nullable.
104
+
</entry>
105
+
</row>
106
+
</tbody>
107
+
</tgroup>
108
+
</informaltable>
109
+
</refsect1>
110
+
89
111
<refsect1 role="seealso">
90
112
&reftitle.seealso;
91
113
<para>
...
...
@@ -97,7 +119,6 @@ $p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
97
119
</refsect1>
98
120

99
121
</refentry>
100
-

101
122
<!-- Keep this comment at the end of the file
102
123
Local variables:
103
124
mode: sgml
104
125