<?php require_once 'Jm/Autoloader.php'; Jm_Autoloader::singleton()->prependPath('lib/php'); $console = Jm_Console::singleton(); $console->write('hello', 'black,bg:yellow'); $console->write(' '); $console->writeln('world', 'black,bg:red');
* * PHP Version >=5.3.0 * * @category Autoloading * @package Jm * @author Thorsten Heymann <*****@*****.**> * @copyright 2012 Thorsten Heymann * @license http://www.opensource.org/licenses/bsd-license.php BSD * @version GIT: $$GITVERSION$$ * @link http://www.metashock.de/pirum * @since 0.1.0 */ /* * Register the autoload method on file load */ spl_autoload_register(array(Jm_Autoloader::singleton(), 'autoload'), TRUE); /** * Singleton class that allows to configure autoloading and provides the * autoload method itself. This may change to a Jm_Autoloader_Resolver in * upcoming versions. * * @category Autoloading * @package Jm * @author Thorsten Heymann <*****@*****.**> * @copyright 2012 Thorsten Heymann * @license http://www.opensource.org/licenses/bsd-license.php BSD * @version GIT: $$GITVERSION$$ * @link http://www.metashock.de/pirum * @since 0.1.0 */ class Jm_Autoloader