![]() ![]() |
freenet-router |
Subversion Repositories: |
| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 2 | simandl | <?php |
| 2 | |
||
| 3 | use Phem\ClassLoading\Bootstrapping\Bootstrapper; |
||
| 4 | |
||
| 5 | /** |
||
| 6 | * |
||
| 7 | * @author kubapet |
||
| 8 | */ |
||
| 9 | class HtmlToTextBoot extends Bootstrapper |
||
| 10 | { |
||
| 11 | protected function boot() |
||
| 12 | { |
||
| 13 | |
||
| 14 | spl_autoload_register(function ($class) |
||
| 15 | { |
||
| 16 | if (strpos($class, "html2text") !== false) |
||
| 17 | { |
||
| 18 | /* |
||
| 19 | * here we cas use include for better efficiency |
||
| 20 | * because this called only once anyway |
||
| 21 | */ |
||
| 22 | include dirname(__FILE__) . DS. 'h2t' . 'h2t.php'; |
||
| 23 | } |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | } |