Skip to content

Commit cce1f93

Browse files
committed
Merge branch '2.3'
* 2.3: Revert "merged branch eventhorizonpl/fix_doctrine_common_dependency (PR symfony#591)" fix doctrine-common dependency for 2.3 version updated VENDORS for 2.3.4 updated VENDORS for 2.3.3 Update phpDoc to make it standard compliant Updated the profiler configuration for the 2.3 changes updated VENDORS for 2.3.2 Small typo/grammar fix. remove app cache, logs .gitkeep to ignore file
2 parents 60d1d0e + 8ef7433 commit cce1f93

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/app/cache/*
44
/app/config/parameters.yml
55
/app/logs/*
6+
!app/cache/.gitkeep
7+
!app/logs/.gitkeep
68
/build/
79
/vendor/
810
/bin/

app/SymfonyRequirements.php

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* ************** CAUTION **************
1818
*
19-
* DO NOT EDIT THIS FILE as it will be overriden by Composer as part of
19+
* DO NOT EDIT THIS FILE as it will be overridden by Composer as part of
2020
* the installation/update process. The original file resides in the
2121
* SensioDistributionBundle.
2222
*
@@ -307,7 +307,7 @@ public function getFailedRequirements()
307307
}
308308

309309
/**
310-
* Returns all optional recommmendations.
310+
* Returns all optional recommendations.
311311
*
312312
* @return array Array of Requirement instances
313313
*/
@@ -554,6 +554,20 @@ function_exists('simplexml_import_dom'),
554554
'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.'
555555
);
556556

557+
$this->addRecommendation(
558+
version_compare($installedPhpVersion, '5.4.11', '>='),
559+
'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)',
560+
'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.'
561+
);
562+
563+
$this->addRecommendation(
564+
(version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<'))
565+
||
566+
version_compare($installedPhpVersion, '5.4.8', '>='),
567+
'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909',
568+
'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.'
569+
);
570+
557571
if (null !== $pcreVersion) {
558572
$this->addRecommendation(
559573
$pcreVersion >= 8.0,
@@ -630,11 +644,15 @@ class_exists('Locale'),
630644
}
631645

632646
$accelerator =
633-
(function_exists('apc_store') && ini_get('apc.enabled'))
647+
(extension_loaded('eaccelerator') && ini_get('eaccelerator.enable'))
648+
||
649+
(extension_loaded('apc') && ini_get('apc.enabled'))
650+
||
651+
(extension_loaded('Zend OPcache') && ini_get('opcache.enable'))
634652
||
635-
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
653+
(extension_loaded('xcache') && ini_get('xcache.cacher'))
636654
||
637-
function_exists('xcache_set')
655+
(extension_loaded('wincache') && ini_get('wincache.ocenabled'))
638656
;
639657

640658
$this->addRecommendation(

app/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Composer\Autoload\ClassLoader;
55

66
/**
7-
* @var $loader ClassLoader
7+
* @var ClassLoader $loader
88
*/
99
$loader = require __DIR__.'/../vendor/autoload.php';
1010

app/config/config_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ framework:
66
session:
77
storage_id: session.storage.mock_file
88
profiler:
9-
enabled: false
9+
collect: false
1010

1111
web_profiler:
1212
toolbar: false

web/.htaccess

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Use the front controller as index file. It serves as fallback solution when
1+
# Use the front controller as index file. It serves as a fallback solution when
22
# every other rewrite/redirect fails (e.g. in an aliased environment without
33
# mod_rewrite). Additionally, this reduces the matching process for the
4-
# startpage (path "/") because otherwise Apache will apply the rewritting rules
4+
# start page (path "/") because otherwise Apache will apply the rewriting rules
55
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
66
DirectoryIndex app.php
77

@@ -24,7 +24,7 @@ DirectoryIndex app.php
2424
# endless redirect loop (request -> rewrite to front controller ->
2525
# redirect -> request -> ...).
2626
# So in case you get a "too many redirects" error or you always get redirected
27-
# to the startpage because your Apache does not expose the REDIRECT_STATUS
27+
# to the start page because your Apache does not expose the REDIRECT_STATUS
2828
# environment variable, you have 2 choices:
2929
# - disable this feature by commenting the following 2 lines or
3030
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
@@ -44,7 +44,7 @@ DirectoryIndex app.php
4444
<IfModule !mod_rewrite.c>
4545
<IfModule mod_alias.c>
4646
# When mod_rewrite is not available, we instruct a temporary redirect of
47-
# the startpage to the front controller explicitly so that the website
47+
# the start page to the front controller explicitly so that the website
4848
# and the generated links can still be used.
4949
RedirectMatch 302 ^/$ /app.php/
5050
# RedirectTemp cannot be used instead

0 commit comments

Comments
 (0)