Skip to content

Commit 4f400c5

Browse files
committed
bc compatibility methods are only needed in the BC document class
1 parent 4407bf6 commit 4f400c5

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

Document/Route.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,23 @@ public function __construct($addFormatPattern = false, $addTrailingSlash = false
1414
trigger_error('Use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route instead', E_USER_DEPRECATED);
1515
parent::__construct($addFormatPattern, $addTrailingSlash);
1616
}
17+
18+
/**
19+
* @deprecated use setContent instead
20+
*/
21+
public function setRouteContent($object)
22+
{
23+
trigger_error('Use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route::setContent', E_USER_DEPRECATED);
24+
$this->setContent($object);
25+
}
26+
27+
/**
28+
* @deprecated use getContent instead
29+
*/
30+
public function getRouteContent()
31+
{
32+
trigger_error('Use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route::getContent', E_USER_DEPRECATED);
33+
return $this->getContent();
34+
}
35+
1736
}

Model/Route.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,6 @@ public function setStaticPrefix($prefix)
115115
return $this;
116116
}
117117

118-
/**
119-
* @deprecated use setContent instead
120-
*/
121-
public function setRouteContent($object)
122-
{
123-
$this->setContent($object);
124-
}
125-
126118
/**
127119
* Set the object this url points to
128120
*
@@ -136,14 +128,6 @@ public function setContent($object)
136128
return $this;
137129
}
138130

139-
/**
140-
* {@inheritDoc}
141-
*/
142-
public function getRouteContent()
143-
{
144-
return $this->getContent();
145-
}
146-
147131
/**
148132
* {@inheritDoc}
149133
*/

0 commit comments

Comments
 (0)