Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Refactors web/app.php to be single front controller
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewpeterson committed Aug 6, 2017
1 parent d381ee2 commit 37198ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 41 deletions.
18 changes: 9 additions & 9 deletions web/app.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;

/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
if (PHP_VERSION_ID < 70000) {
include_once __DIR__.'/../var/bootstrap.php.cache';
}
require __DIR__.'/../vendor/autoload.php';


$kernel = new AppKernel('prod', false);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
if ('dev' == getenv('SYMFONY_ENV')) {
Debug::enable();
$kernel = new AppKernel('dev', true);
} else {
$kernel = new AppKernel('prod', false);
//$kernel = new AppCache($kernel);
}
//$kernel = new AppCache($kernel);

// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
Expand Down
32 changes: 0 additions & 32 deletions web/app_dev.php

This file was deleted.

0 comments on commit 37198ed

Please sign in to comment.