Skip to content

Commit 2245556

Browse files
committed
Trigger deprecation notices
1 parent 4f22bda commit 2245556

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/DataFixtures/PHPCR/LoadBaseData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class LoadBaseData implements FixtureInterface
2222
{
2323
public function load(ObjectManager $manager)
2424
{
25+
@trigger_error('The '.__NAMESPACE__.'\LoadBaseData data fixture is deprecated since version 1.1 and will be removed in 2.0.', E_USER_DEPRECATED);
26+
2527
$root = $manager->find(null, '/');
2628
$base = new Generic;
2729
$base->setNodename('test');

src/Document/Content.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
1515

16+
@trigger_error('The '.__NAMESPACE.'\Content document is deprecated as of version 1.1 and will be removed in 2.0.', E_USER_DEPRECATED);
17+
1618
/**
1719
* Test content document
1820
*

src/HttpKernel/TestKernel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ public function requireBundleSets(array $names)
122122
*/
123123
public function requireBundleSet($name)
124124
{
125+
if ('sonata_admin' === $name) {
126+
@trigger_error('The "sonata_admin" bundleset is deprecated since version 1.1 and will be removed in 2.0. Use the "sonata_admin_phpcr" bundleset instead.', E_USER_DEPRECATED);
127+
}
128+
125129
if (!isset($this->bundleSets[$name])) {
126130
throw new \InvalidArgumentException(sprintf(
127131
'Bundle set %s has not been registered, available bundle sets: %s',

0 commit comments

Comments
 (0)