| @@ 90-108 (lines=19) @@ | ||
| 87 | * @param string $doc Document name |
|
| 88 | * @return string |
|
| 89 | */ |
|
| 90 | private function getServiceDocument(Definition $service, $ns, $bundle, $doc) |
|
| 91 | { |
|
| 92 | $tags = $service->getTag('graviton.rest'); |
|
| 93 | if (!empty($tags[0]['collection'])) { |
|
| 94 | $doc = $tags[0]['collection']; |
|
| 95 | $bundle = $tags[0]['collection']; |
|
| 96 | } |
|
| 97 | ||
| 98 | if (strtolower($ns) === 'gravitondyn') { |
|
| 99 | $ns = 'GravitonDyn'; |
|
| 100 | } |
|
| 101 | ||
| 102 | return sprintf( |
|
| 103 | '%s\\%s\\Document\\%s', |
|
| 104 | ucfirst($ns), |
|
| 105 | ucfirst($bundle).'Bundle', |
|
| 106 | ucfirst($doc) |
|
| 107 | ); |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * Recursive doctrine document processing |
|
| @@ 82-100 (lines=19) @@ | ||
| 79 | * @param string $doc Document name |
|
| 80 | * @return string |
|
| 81 | */ |
|
| 82 | private function getServiceDocument(Definition $service, $ns, $bundle, $doc) |
|
| 83 | { |
|
| 84 | $tags = $service->getTag('graviton.rest'); |
|
| 85 | if (!empty($tags[0]['collection'])) { |
|
| 86 | $doc = $tags[0]['collection']; |
|
| 87 | $bundle = $tags[0]['collection']; |
|
| 88 | } |
|
| 89 | ||
| 90 | if (strtolower($ns) === 'gravitondyn') { |
|
| 91 | $ns = 'GravitonDyn'; |
|
| 92 | } |
|
| 93 | ||
| 94 | return sprintf( |
|
| 95 | '%s\\%s\\Document\\%s', |
|
| 96 | ucfirst($ns), |
|
| 97 | ucfirst($bundle).'Bundle', |
|
| 98 | ucfirst($doc) |
|
| 99 | ); |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Recursive doctrine document processing |
|