Skip to content

Commit efaea58

Browse files
committed
[#1463] add empty implementation for required method
The new `ParamInterface` requires implementing classes to provide the body of the `getValue()` method. This adds an empty implementation to the `Param` class to prevent BC breaks for existing classes that extend the `Param` class.
1 parent 932639b commit efaea58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Controller/Annotations/Param.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace FOS\RestBundle\Controller\Annotations;
1313

14+
use Symfony\Component\HttpFoundation\Request;
15+
1416
/**
1517
* Represents a parameter that can be present in GET or POST data.
1618
*
@@ -51,4 +53,9 @@ public function getKey()
5153
{
5254
return $this->key ?: $this->name;
5355
}
56+
57+
public function getValue(Request $request, $default)
58+
{
59+
return;
60+
}
5461
}

0 commit comments

Comments
 (0)