Skip to content

Commit 7f842cd

Browse files
committed
Merge pull request #116 from symfony-cmf/deprecate_resources
Deprecate resources
2 parents b2422ed + 04d266a commit 7f842cd

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

resources/config/default.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$kernelRootDir = $container->getParameter('kernel.root_dir');
46
$bundleName = null;
57

resources/config/dist/framework.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
@trigger_error('The resources/config/dist/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$config = array(
46
'secret' => 'test',
57
'test' => null,

resources/config/dist/phpcr_odm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
@trigger_error('The resources/config/dist/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$config = array(
46
'session' => array(
57
'backend' => '%phpcr_backend%',

resources/config/doctrine_orm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/doctrine_orm.yml');

resources/config/phpcr_odm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/phpcr_odm.php');

resources/config/sonata_admin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
4+
35
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/sonata_admin.yml');

0 commit comments

Comments
 (0)