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;
     }
 }
Example #2
0
 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) {
         $libDir = dirname(__FILE__) . '/..';
         $autoloader = sfSimpleAutoload::getInstance();
         $autoloader->addDirectory($libDir);
         $autoloader->register();
         self::$done = true;
     }
 }
 /**
  * @see sfTask
  */
 public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter)
 {
     parent::initialize($dispatcher, $formatter);
     $globConfigs = sfYaml::load(dirname(__FILE__) . '/../../config/audit.yml');
     $this->patternConfigs = array();
     foreach ($globConfigs as $glob => $globConfig) {
         // Globs like //foo/... must be matched against paths with a leading
         // slash, while globs like foo/... must be matched against paths without
         // a leading slash.  Consequently, prefix all globs with slash, if
         // necessary, and always match against paths with a leading slash.
         if (strncmp($glob, '/', 1) != 0) {
             $glob = '/' . $glob;
         }
         $pattern = self::globToPattern($glob);
         $this->patternConfigs[$pattern] = $globConfig;
     }
 }
 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;
     }
 }
 public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter)
 {
     parent::initialize($dispatcher, $formatter);
     self::$done = true;
 }
Example #7
0
 public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter)
 {
     parent::initialize($dispatcher, $formatter);
 }