| 1 | <?php |
||
| 21 | class ChainVersionResolver implements VersionResolverInterface |
||
| 22 | { |
||
| 23 | private $resolvers = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var VersionResolverInterface[] |
||
| 27 | */ |
||
| 28 | 8 | public function __construct(array $resolvers) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 8 | public function resolve(Request $request) |
|
| 54 | |||
| 55 | 8 | public function addResolver(VersionResolverInterface $resolver) |
|
| 59 | } |
||
| 60 |
If you suppress an error, we recommend checking for the error condition explicitly: