src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Inject the renderer with a resolver
     *
     * Seed the resolver with a template name and path based on the $type passed, and inject it
     * into the renderer.
     *
     * @param PhpRenderer $renderer
     * @param string $type
     * @return string Template name
     */
Inject the renderer with a resolver
Seed the resolver with a template name and path based on the $type passed, and inject it
into the renderer.

@param PhpRenderer $renderer
@param string $type
@return string Template name
Inject the renderer with a resolver Seed the resolver with a template name and path based on the $type passed and inject it into the renderer . @param PhpRenderer $renderer @param string $type @return string Template name
protected function injectResolver(PhpRenderer $renderer, $type)
    {
        $template = sprintf('doctrine/rest-', $type);
        $path     = sprintf('%s/../../../view/doctrine/rest-%s.phtml', __DIR__, $type);
        $resolver = new Resolver\TemplateMapResolver([
            $template => $path,
        ]);
        $renderer->setResolver($resolver);
        return $template;
    }
protected function injectResolver ( PhpRenderer $ renderer , $ type ) { $ template = sprintf ( 'doctrine/rest-' , $ type ) ; $ path = sprintf ( '%s/../../../view/doctrine/rest-%s.phtml' , __DIR__ , $ type ) ; $ resolver = new Resolver \ TemplateMapResolver ( [ $ template => $ path , ] ) ; $ renderer -> setResolver ( $ resolver ) ; return $ template ; }
Inject the renderer with a resolver
 Seed the resolver with a template name and path based on the $type passed, and inject it
 into the renderer.
Inject the renderer with a resolver Seed the resolver with a template name and path based on the $type passed and inject it into the renderer .