Skip to content

Commit 58b12b3

Browse files
committed
Comment the deprecations
1 parent 54ed443 commit 58b12b3

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private function addAnnotationsSection(ArrayNodeDefinition $rootNode)
493493
->always(function ($v) {
494494
if (!isset($v['annotations'])) {
495495
$v['annotations']['enabled'] = true;
496-
@trigger_error('You must explicitly define wheter to enable "framework.annotations" or not. It will be disabled by default in 4.0', E_USER_DEPRECATED);
496+
// @trigger_error('You must explicitly define wheter to enable "framework.annotations" or not. It will be disabled by default in 4.0', E_USER_DEPRECATED);
497497
}
498498

499499
return $v;
@@ -537,7 +537,7 @@ private function addPropertyAccessSection(ArrayNodeDefinition $rootNode)
537537
->always(function ($v) {
538538
if (!isset($v['property_access'])) {
539539
$v['property_access']['enabled'] = true;
540-
@trigger_error('You must explicitly define wheter to enable "framework.property_access" or not. It will be disabled by default in 4.0', E_USER_DEPRECATED);
540+
// @trigger_error('You must explicitly define wheter to enable "framework.property_access" or not. It will be disabled by default in 4.0', E_USER_DEPRECATED);
541541
}
542542

543543
return $v;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
$container->loadFromExtension('framework', array(
4+
'annotations' => array(
5+
'enabled' => false,
6+
),
7+
));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" ?>
2+
3+
<container xmlns="http://symfony.com/schema/dic/services"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns:framework="http://symfony.com/schema/dic/symfony"
6+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
7+
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
8+
9+
<framework:config>
10+
<framework:annotations enabled="false" />
11+
</framework:config>
12+
</container>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
framework:
2+
annotations:
3+
enabled: false

src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/config/framework.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ framework:
1010
session:
1111
storage_id: session.storage.mock_file
1212
profiler: { only_exceptions: false }
13-
property_access: ~
1413

1514
services:
1615
logger: { class: Psr\Log\NullLogger }

0 commit comments

Comments
 (0)