/** * Constructor. */ public function __construct(\Curry\App $app) { parent::__construct($app); // Override and increase max execution time if set $timeLimit = ini_get('max_execution_time'); if ($timeLimit && $timeLimit < 250) { @set_time_limit(250); } \Propel::disableInstancePooling(); \Propel::setLogger(null); // make sure all classes are included foreach (Propel::getModels() as $classes) { foreach ($classes as $clazz) { class_exists($clazz . 'Peer', true); } } }
/** * Constructor */ public function __construct(\Curry\App $app) { parent::__construct($app); $this->rootPath = $this->app['wwwPath'] . DIRECTORY_SEPARATOR; }