@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Resourceful; |
4 | 4 | |
5 | 5 | use Silex\Application; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpFoundation\Request; |
8 | 7 | use Symfony\Component\HttpFoundation\Response; |
9 | 8 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
@@ -12,6 +12,9 @@ |
||
12 | 12 | |
13 | 13 | public function getSchemaId(){ return $this->schemaId;} |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $schemaId |
|
17 | + */ |
|
15 | 18 | public static function apply($schemaId, Application $app, Response $response) |
16 | 19 | { |
17 | 20 | $handler =new static($schemaId); |
@@ -26,6 +26,9 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | |
29 | + /** |
|
30 | + * @param Application $app |
|
31 | + */ |
|
29 | 32 | public function getDatastore($app) |
30 | 33 | { |
31 | 34 | $schemaId= $this->getSchemaId(); |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | 7 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
8 | 8 | use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException; |
9 | -use Doctrine\Common\Cache\Cache; |
|
10 | 9 | |
11 | 10 | class ReadResourceController |
12 | 11 | { |
@@ -77,6 +77,11 @@ |
||
77 | 77 | return null; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $id |
|
82 | + * |
|
83 | + * @return string |
|
84 | + */ |
|
80 | 85 | protected function filename($id) |
81 | 86 | { |
82 | 87 | if (is_dir("$this->location/$id")) { |