1 | <?php |
||
20 | abstract class AbstractResourceContext implements KernelAwareContext |
||
21 | { |
||
22 | use ResourceDictionary; |
||
23 | |||
24 | /** |
||
25 | * @param string $resource |
||
26 | * @param mixed $criteria |
||
27 | */ |
||
28 | public function assertResourceFound($resource, array $criteria) |
||
35 | |||
36 | /** |
||
37 | * @param string $resource |
||
38 | * @param mixed $criteria |
||
39 | */ |
||
40 | public function assertResourceNotFound($resource, array $criteria) |
||
47 | |||
48 | /** |
||
49 | * @param string $resource |
||
50 | * @param mixed[] $criteria |
||
51 | * |
||
52 | * @return object|null |
||
53 | */ |
||
54 | protected function findResource($resource, array &$criteria) |
||
66 | } |
||
67 |