Skip to content

Commit

Permalink
Merge pull request #9 from elrafael/master
Browse files Browse the repository at this point in the history
Add Composer support
  • Loading branch information
edmundask committed Nov 9, 2012
2 parents 0b5c1f6 + a50f595 commit e7c112f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/Twiggy.php
Expand Up @@ -18,7 +18,9 @@

if(!defined('TWIGGY_ROOT')) define('TWIGGY_ROOT', dirname(dirname(__FILE__)));

require_once(TWIGGY_ROOT . '/vendor/Twig/lib/Twig/Autoloader.php');
//If you don't like composer but love sparks. POSER!
if ( !class_exists('ComposerAutoloaderInit') )
require_once(TWIGGY_ROOT . '/vendor/Twig/lib/Twig/Autoloader.php');
Twig_Autoloader::register();

class Twiggy
Expand Down

0 comments on commit e7c112f

Please sign in to comment.