enableAllPluginsExcept(array('sfPropelPlugin')); } static public $isPublicVersion = true; static protected $zendLoaded = false; static public function registerZend() { if (self::$zendLoaded) { return; } set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path()); require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/Autoloader.php'; Zend_Loader_Autoloader::getInstance(); self::$zendLoaded = true; Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive()); } protected static $mailer = null; /** * Returns the project mailer */ static public function getMailer() { if (is_null(self::$mailer)) { // $tr = new Swift_SmtpTransport('smtp.luzanky.cz', 465, 'ssl'); // $tr->setUsername('deniky-maily'); // $tr->setPassword('Wiz54gawkS='); $tr = new Swift_MailTransport(); self::$mailer = Swift_Mailer::newInstance($tr); } return self::$mailer; } }