jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [3rdParty/] [HtmlToText/] [HtmlToTextBoot.php] - Blame information for rev 2

 

Line No. Rev Author Line
12simandl<?php
2 
3use Phem\ClassLoading\Bootstrapping\Bootstrapper;
4 
5/**
6 *
7 * @author kubapet
8 */
9class 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}

Powered by WebSVN 2.2.1