Created
September 28, 2015 16:45
-
-
Save florentdestremau/4b83de2858a78219a5cc to your computer and use it in GitHub Desktop.
Symfony 1 relocate cache dir for vagrant use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php'; | |
sfCoreAutoload::register(); | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->enablePlugins('sfDoctrinePlugin'); | |
$this->enablePlugins('sfDoctrineGuardPlugin'); | |
$this->enablePlugins('mpRealityAdminPlugin'); | |
$this->enablePlugins('sfFormExtraPlugin'); | |
//sfWidgetFormSchema::setDefaultFormFormatterName('ac2009'); | |
$this->enablePlugins('sfPhpExcelPlugin'); | |
$this->enablePlugins('sfPHPUnit2Plugin'); | |
} | |
public function configureDoctrine(Doctrine_Manager $manager) | |
{ | |
$manager->registerHydrator('at_scalar_array', 'AtDoctrineHydratorScalarArray'); | |
$manager->registerHydrator('at_pair_array', 'AtDoctrineHydratorPairArray'); | |
} | |
public function setRootDir($rootDir) | |
{ | |
parent::setRootDir($rootDir); | |
$this->setCacheDir('/dev/shm/dreyfussf1/'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment