src/Graviton/DocumentBundle/DependencyInjection/Compiler/ExtRefFieldsCompilerPass.php
private function getServiceDocument(Definition $service, $ns, $bundle, $doc)
    {
        $tags = $service->getTag('graviton.rest');
        if (!empty($tags[0]['collection'])) {
            $doc = $tags[0]['collection'];
            $bundle = $tags[0]['collection'];
        }

        if (strtolower($ns) === 'gravitondyn') {
            $ns = 'GravitonDyn';
        }

        return sprintf(
            '%s\\%s\\Document\\%s',
            ucfirst($ns),
            ucfirst($bundle).'Bundle',
            ucfirst($doc)
        );
    }
private function getServiceDocument(Definition $service, $ns, $bundle, $doc)
    {
        $tags = $service->getTag('graviton.rest');
        if (!empty($tags[0]['collection'])) {
            $doc = $tags[0]['collection'];
            $bundle = $tags[0]['collection'];
        }

        if (strtolower($ns) === 'gravitondyn') {
            $ns = 'GravitonDyn';
        }

        return sprintf(
            '%s\\%s\\Document\\%s',
            ucfirst($ns),
            ucfirst($bundle).'Bundle',
            ucfirst($doc)
        );
    }
private function getServiceDocument ( Definition $ service , $ ns , $ bundle , $ doc ) { $ tags = $ service -> getTag ( 'graviton.rest' ) ; if ( ! empty ( $ tags [ 0 ] [ 'collection' ] ) ) { $ doc = $ tags [ 0 ] [ 'collection' ] ; $ bundle = $ tags [ 0 ] [ 'collection' ] ; } if ( strtolower ( $ ns ) === 'gravitondyn' ) { $ ns = 'GravitonDyn' ; } return sprintf ( '%s\\%s\\Document\\%s' , ucfirst ( $ ns ) , ucfirst ( $ bundle ) . 'Bundle' , ucfirst ( $ doc ) ) ; }
Get document class name from service

@param Definition $service Service definition
@param string     $ns      Bundle namespace
@param string     $bundle  Bundle name
@param string     $doc     Document name
@return string
Get document class name from service