| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 42 | public function getCollection(string $resourceClass, string $operationName = null) |
||
| 43 | { |
||
| 44 | if (true === $this->auditManager->getMetadataFactory()->isAudited($resourceClass)) { |
||
| 45 | throw new NotFoundHttpException(sprintf('Please add an {id} to get the revisions of %s', $resourceClass)); |
||
| 46 | // or delete this ? and use the itemDataProvider as an collection providers too since we need an id to get the revision |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |