Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 409 Bytes
<?php
class PluginLoadDoctrine
{
public function execute($event)
{
require_once(LIB_DIR . '/doctrine/Doctrine.compiled.php');
//spl_autoload_register(array('Doctrine', 'autoload'));
$eventContext = $event->getSubject();
Doctrine_Manager::connection($eventContext->getConfig()->db->dbh);
$brocker = $eventContext->getHelperBrocker();
$brocker->addHelper(new Mvc_Controller_Helper_Db());
}
}