Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58b12b3

Browse files
committed
Comment the deprecations
1 parent54ed443 commit58b12b3

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
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;
Lines changed: 7 additions & 0 deletions
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+
));
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" ?>
2+
3+
<containerxmlns="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:annotationsenabled="false" />
11+
</framework:config>
12+
</container>
Lines changed: 3 additions & 0 deletions
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‎

Lines changed: 0 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp