Issues (40)

src/Service/RenderServiceInterface.php (1 issue)

Labels
Severity
1
<?php
2
declare(strict_types = 1);
3
4
namespace Phauthentic\Presentation\Service;
5
6
use Phauthentic\Presentation\Renderer\RendererInterface;
7
use Phauthentic\Presentation\View\ViewInterface;
8
9
/**
10
 * Render Service Interface
11
 */
12
interface RenderServiceInterface
13
{
14
    /**
15
     * Adds a renderer to a mime type
16
     *
17
     * @return void
18
     */
19
    public function addRenderer(string $outputType, RendererInterface $renderer): self;
20
21
    /**
22
     * Checks if the given mime type can be rendered as output
23
     *
24
     * @param string $mimeType Mime Type
25
     * @return bool
26
     */
27
    public function canRender(string $mimeType);
28
29
    /**
30
     * Renders the view to the response
31
     *
32
     * @param \Phauthentic\Presentation\Renderer\ViewInterface $view
0 ignored issues
show
The type Phauthentic\Presentation\Renderer\ViewInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
33
     * @param string $outputType Type of response data to render
34
     * @return string
35
     */
36
    public function render(ViewInterface $view, ?string $outputType = 'html'): string;
37
}
38