Skip to content

Commit 55bc635

Browse files
author
Michaël Perrin
committed
Optimizations for PHP 7
See symfony/symfony-standard#1030
1 parent 02feb17 commit 55bc635

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

app/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"scripts": {
3737
"symfony-scripts": [
3838
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
39-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
4039
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
4140
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
4241
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",

app/web/app.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
/** @var \Composer\Autoload\ClassLoader $loader */
66
$loader = require __DIR__.'/../app/autoload.php';
7-
include_once __DIR__.'/../var/bootstrap.php.cache';
87

98
$kernel = new AppKernel('prod', false);
10-
$kernel->loadClassCache();
119
//$kernel = new AppCache($kernel);
1210

1311
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter

app/web/app_dev.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Feel free to remove this, extend it, or make something more sophisticated.
1313
if (isset($_SERVER['HTTP_CLIENT_IP'])
1414
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
15-
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server')
15+
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '172.23.0.1', '::1']) || php_sapi_name() === 'cli-server')
1616
) {
1717
header('HTTP/1.0 403 Forbidden');
1818
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
@@ -23,7 +23,6 @@
2323
Debug::enable();
2424

2525
$kernel = new AppKernel('dev', true);
26-
$kernel->loadClassCache();
2726
$request = Request::createFromGlobals();
2827
$response = $kernel->handle($request);
2928
$response->send();

0 commit comments

Comments
 (0)