Permalink
Browse files

[STARTUP] Vendor, cache and log in /tmp/symfony2app/

  • Loading branch information...
gajdaw committed Dec 2, 2014
1 parent 1d82fd5 commit 5a81d29b24d3afa392d883aa6664a43a5e08831b
Showing with 15 additions and 2 deletions.
  1. +11 −0 app/AppKernel.php
  2. +2 −1 app/autoload.php
  3. +2 −1 composer.json
View
@@ -33,4 +33,15 @@ public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
public function getCacheDir()
{
return '/tmp/symfony2app/app/cache/' . $this->environment;
}
public function getLogDir()
{
return '/tmp/symfony2app/app/logs';
}
}
View
@@ -6,7 +6,8 @@
/**
* @var ClassLoader $loader
*/
$loader = require __DIR__.'/../vendor/autoload.php';
//$loader = require __DIR__.'/../vendor/autoload.php';
$loader = require '/tmp/symfony2app/vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
View
@@ -44,7 +44,8 @@
]
},
"config": {
"bin-dir": "bin"
"bin-dir": "bin",
"vendor-dir": "/tmp/symfony2app/vendor"
},
"extra": {
"symfony-app-dir": "app",

0 comments on commit 5a81d29

Please sign in to comment.