Skip to content

Commit 6350732

Browse files
committed
add entry point for legacy calls (make sure nothing breaks if a dev circumvents autoload by directly including fpdm.php)
1 parent d48081e commit 6350732

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

fpdm.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Entry point for legacy calls
5+
*
6+
* Devs not using composer autoload will have included this file directly.
7+
* Keeping it as a wrapper allows to retain compatibility with legacy projects
8+
* while allowing adjustments to the source to improve composer integration.
9+
*/
10+
11+
define('FPDM_DIRECT', true);
12+
13+
require_once("src/fpdm.php");
14+
15+
require_once("src/filters/FilterASCIIHex.php");
16+
require_once("src/filters/FilterASCII85.php");
17+
require_once("src/filters/FilterFlate.php");
18+
require_once("src/filters/FilterLZW.php");
19+
require_once("src/filters/FilterStandard.php");

0 commit comments

Comments
 (0)