public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter) { parent::initialize($dispatcher, $formatter); if (!self::$done) { sfToolkit::addIncludePath(array(realpath(dirname(__FILE__) . '/../vendor'), dirname(__FILE__))); self::$done = true; } }
public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter) { parent::initialize($dispatcher, $formatter); if (!self::$done) { sfToolkit::addIncludePath(array(sfConfig::get('sf_propel_runtime_path', realpath(dirname(__FILE__) . '/../lib/vendor')), dirname(__FILE__))); self::$done = true; } }
public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter) { parent::initialize($dispatcher, $formatter); if (!self::$done) { set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../vendor'); $libDir = dirname(__FILE__) . '/..'; $autoloader = sfSimpleAutoload::getInstance(); $autoloader->addDirectory($libDir . '/vendor/creole'); $autoloader->addDirectory($libDir . '/vendor/propel'); $autoloader->addDirectory($libDir . '/creole'); $autoloader->addDirectory($libDir . '/propel'); $autoloader->setClassPath('Propel', $libDir . '/propel/sfPropelAutoload.php'); $autoloader->addDirectory(sfConfig::get('sf_lib_dir') . '/model'); $autoloader->addDirectory(sfConfig::get('sf_lib_dir') . '/form'); $autoloader->register(); self::$done = true; } }