Skip to content

Commit 7926254

Browse files
committed
creation fix
1 parent f6eb245 commit 7926254

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/AdvancedCMS/SignerInfo.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010

1111
namespace Falseclock\AdvancedCMS;
1212

13+
use Adapik\CMS\Exception\FormatException;
1314
use Adapik\CMS\UnsignedAttribute;
1415
use Exception;
1516
use FG\ASN1\Exception\ParserException;
1617
use FG\ASN1\ExplicitlyTaggedObject;
1718
use FG\ASN1\Universal\NullObject;
19+
use FG\ASN1\Universal\Sequence;
1820

1921
/**
2022
* Class SignerInfo
@@ -24,6 +26,17 @@
2426
*/
2527
class SignerInfo extends \Adapik\CMS\SignerInfo
2628
{
29+
/**
30+
* @param string $content
31+
*
32+
* @return \Adapik\CMS\SignerInfo
33+
* @throws FormatException
34+
*/
35+
public static function createFromContent(string $content)
36+
{
37+
return new self(self::makeFromContent($content, \Adapik\CMS\Maps\SignerInfo::class, Sequence::class));
38+
}
39+
2740
/**
2841
* @param UnsignedAttribute $newAttribute
2942
* @return $this

src/AdvancedCMS/UnsignedAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use Adapik\CMS\BasicOCSPResponse;
1414
use Adapik\CMS\CertificateList;
15-
use Adapik\CMS\CMSInterface;
15+
use Adapik\CMS\Interfaces\CMSInterface;
1616
use Adapik\CMS\UnsignedAttribute;
1717
use FG\ASN1\Exception\Exception;
1818
use FG\ASN1\Exception\ParserException;

0 commit comments

Comments
 (0)