mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-30 16:40:28 +01:00
28 lines
521 B
PHP
28 lines
521 B
PHP
<?php
|
|
|
|
namespace Xentral\Components\Pdf;
|
|
|
|
use Xentral\Components\Pdf\Merger\FpdiPdfMerger;
|
|
use Xentral\Components\Pdf\Merger\GhostScriptPdfMerger;
|
|
|
|
final class Bootstrap
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerServices()
|
|
{
|
|
return [
|
|
'PdfMerger' => 'onInitPdfMerger',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return PdfMerger
|
|
*/
|
|
public static function onInitPdfMerger()
|
|
{
|
|
return new PdfMerger(new FpdiPdfMerger(), new GhostScriptPdfMerger());
|
|
}
|
|
}
|