Skip to content

Commit 4066f99

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: The security.yml file now uses the same configuration as in Symfony 2.3 (the "default" firewall is now called "main") fixed PHP dep Removed AcmeDemoBundle Removed beta flag from release version PSR-4 path to `SymfonyStandard` is incorrect updated VENDORS for 2.7.0 updated VENDORS for 2.6.9 updated VENDORS for 2.6.8 Changed ORM default naming strategy to underscore updated VENDORS for 2.7.0-BETA2 updated VENDORS for 2.6.7 Conflicts: composer.json composer.lock
2 parents acdf151 + 8b25d1b commit 4066f99

File tree

6 files changed

+71
-66
lines changed

6 files changed

+71
-66
lines changed

app/SymfonyRequirements.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,15 @@ class_exists('Locale'),
643643
'Install and enable the <strong>intl</strong> extension (used for validators).'
644644
);
645645

646-
if (class_exists('Collator')) {
646+
if (extension_loaded('intl')) {
647+
// in some WAMP server installations, new Collator() returns null
647648
$this->addRecommendation(
648649
null !== new Collator('fr_FR'),
649650
'intl extension should be correctly configured',
650651
'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.'
651652
);
652-
}
653653

654-
if (class_exists('Locale')) {
654+
// check for compatible ICU versions (only done when you have the intl extension)
655655
if (defined('INTL_ICU_VERSION')) {
656656
$version = INTL_ICU_VERSION;
657657
} else {
@@ -670,6 +670,14 @@ class_exists('Locale'),
670670
'intl ICU version should be at least 4+',
671671
'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).'
672672
);
673+
674+
$this->addPhpIniRecommendation(
675+
'intl.error_level',
676+
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
677+
true,
678+
'intl.error_level should be 0 in php.ini',
679+
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
680+
);
673681
}
674682

675683
$accelerator =

app/SymfonyStandard/RootPackageInstallSubscriber.php

-6
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818

1919
class RootPackageInstallSubscriber implements EventSubscriberInterface
2020
{
21-
public static function installAcmeDemoBundle(CommandEvent $event)
22-
{
23-
ScriptHandler::installAcmeDemoBundle($event);
24-
}
25-
2621
public static function setupNewDirectoryStructure(CommandEvent $event)
2722
{
2823
ScriptHandler::defineDirectoryStructure($event);
@@ -33,7 +28,6 @@ public static function getSubscribedEvents()
3328
return array(
3429
ScriptEvents::POST_INSTALL_CMD => array(
3530
array('setupNewDirectoryStructure', 512),
36-
array('installAcmeDemoBundle', 0)
3731
),
3832
);
3933
}

app/config/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ doctrine:
6868

6969
orm:
7070
auto_generate_proxy_classes: "%kernel.debug%"
71+
naming_strategy: doctrine.orm.naming_strategy.underscore
7172
auto_mapping: true
7273

7374
# Swiftmailer Configuration

app/config/security.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
security:
2+
23
providers:
34
in_memory:
45
memory: ~
@@ -8,5 +9,5 @@ security:
89
pattern: ^/(_(profiler|wdt|error)|css|images|js)/
910
security: false
1011

11-
default:
12+
main:
1213
anonymous: ~

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"type": "project",
55
"description": "The \"Symfony Standard Edition\" distribution",
66
"autoload": {
7-
"psr-4": { "": "src/", "SymfonyStandard\\": "app/" }
7+
"psr-4": { "": "src/", "SymfonyStandard\\": "app/SymfonyStandard/" }
88
},
99
"require": {
10-
"php": ">=5.3.3",
10+
"php": ">=5.3.9",
1111
"symfony/symfony": "2.8.x-dev",
1212
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
1313
"doctrine/dbal": "<2.5",

0 commit comments

Comments
 (0)