jablonka.czprosek.czf

freenet-router

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

Compare with Previous - Blame - Download


<?php

use Phem\ClassLoading\Bootstrapping\Bootstrapper;

/**
 *
 * @author kubapet
 */
class HtmlToTextBoot extends Bootstrapper
{   
    protected function boot()
    {
        
        spl_autoload_register(function ($class)
                {
                    if (strpos($class, "html2text") !== false)
                    {
                        /*
                         * here we cas use include for better efficiency
                         * because this called only once anyway 
                         */
                        include dirname(__FILE__) . DS. 'h2t' . 'h2t.php';
                    }
                });        
    }
}

Powered by WebSVN 2.2.1