Skip to content

Commit

Permalink
Now you can use SPARKS or Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
elrafael committed Nov 9, 2012
1 parent bf4c7f7 commit a50f595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/Twiggy.php
Original file line number Diff line number Diff line change
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 a50f595

Please sign in to comment.