Permalink
Browse files

Edit the web/ files include paths and kernel names

  • Loading branch information...
damienalexandre committed Feb 3, 2013
1 parent 3c3b04c commit c6f21ead7a38a9d1bacadf18ef3e9a4518296bef
Showing with 16 additions and 16 deletions.
  1. +5 −5 web/api/app.php
  2. +3 −3 web/api/app_dev.php
  3. +4 −4 web/pony/app.php
  4. +3 −3 web/pony/app_dev.php
  5. +1 −1 web/pony/config.php
@@ -3,7 +3,7 @@
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
$loader = require_once __DIR__.'/../../apps/bootstrap.php.cache';
// Use APC for autoloading to improve performance.
// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
@@ -13,12 +13,12 @@
$loader->register(true);
*/
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
require_once __DIR__.'/../../apps/api/ApiKernel.php';
//require_once __DIR__.'/../../apps/api/ApiCache.php';
$kernel = new AppKernel('prod', false);
$kernel = new ApiKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
//$kernel = new ApiCache($kernel);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
@@ -16,10 +16,10 @@
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
$loader = require_once __DIR__.'/../../apps/bootstrap.php.cache';
require_once __DIR__.'/../../apps/api/ApiKernel.php';
$kernel = new AppKernel('dev', true);
$kernel = new ApiKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
@@ -3,7 +3,7 @@
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
$loader = require_once __DIR__.'/../../apps/bootstrap.php.cache';
// Use APC for autoloading to improve performance.
// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
@@ -13,10 +13,10 @@
$loader->register(true);
*/
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
require_once __DIR__.'/../../apps/pony/PonyKernel.php';
//require_once __DIR__.'/../../apps/pony/PonyCache.php';
$kernel = new AppKernel('prod', false);
$kernel = new PonyKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
$request = Request::createFromGlobals();
@@ -16,10 +16,10 @@
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
$loader = require_once __DIR__.'/../../apps/bootstrap.php.cache';
require_once __DIR__.'/../../apps/pony/PonyKernel.php';
$kernel = new AppKernel('dev', true);
$kernel = new PonyKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
@@ -12,7 +12,7 @@
exit('This script is only accessible from localhost.');
}
require_once dirname(__FILE__).'/../app/SymfonyRequirements.php';
require_once dirname(__FILE__).'/../../apps/pony/SymfonyRequirements.php';
$symfonyRequirements = new SymfonyRequirements();

0 comments on commit c6f21ea

Please sign in to comment.