Skip to content

Instantly share code, notes, and snippets.

@florentdestremau
Created September 28, 2015 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florentdestremau/4b83de2858a78219a5cc to your computer and use it in GitHub Desktop.
Save florentdestremau/4b83de2858a78219a5cc to your computer and use it in GitHub Desktop.
Symfony 1 relocate cache dir for vagrant use
<?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