/**
  * @see sfPluginConfiguration
  */
 public function initialize()
 {
     require_once dirname(__FILE__) . '/../lib/vendor/mondongo/lib/vendor/symfony/src/Symfony/Component/HttpFoundation/UniversalClassLoader.php';
     $loader = new Symfony\Component\HttpFoundation\UniversalClassLoader();
     $loader->registerNamespaces(array('Mondongo\\Behavior' => sfConfig::get('sf_mondongo_behaviors_lib_dir', dirname(__FILE__) . '/../lib/vendor/mondongo-behaviors/lib'), 'Mondongo' => sfConfig::get('sf_mondongo_lib_dir', dirname(__FILE__) . '/../lib/vendor/mondongo/lib')));
     $loader->register();
     $this->dispatcher->connect('context.load_factories', array($this, 'listenToContextLoadFactories'));
     $this->dispatcher->connect('component.method_not_found', array($this, 'listenToComponentMethodNotFound'));
 }
Esempio n. 2
0
<?php

$vendorDir = __DIR__ . '/vendor';
require_once $vendorDir . '/symfony/src/Symfony/Component/HttpFoundation/UniversalClassLoader.php';
$loader = new Symfony\Component\HttpFoundation\UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => $vendorDir . '/symfony/src', 'Application' => __DIR__, 'Bundle' => __DIR__, 'Doctrine\\DBAL\\Migrations' => $vendorDir . '/doctrine-migrations/lib', 'Doctrine\\Common' => $vendorDir . '/doctrine/lib/vendor/doctrine-common/lib', 'Doctrine\\DBAL' => $vendorDir . '/doctrine-dbal/lib', 'Doctrine' => $vendorDir . '/doctrine/lib', 'Zend' => $vendorDir . '/zend/library'));
$loader->registerPrefixes(array('Twig_' => __DIR__ . '/vendor/Twig/lib'));
$loader->register();