Skip to content

Commit

Permalink
Issue CollaboraOnline#27: Use constructor property promotion and read…
Browse files Browse the repository at this point in the history
…only in ViewerController.
  • Loading branch information
donquixote committed Sep 9, 2024
1 parent a703e0d commit 4ab9dac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Controller/ViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
*/
class ViewerController extends ControllerBase {

private $renderer;

/**
* The controller constructor.
*/
public function __construct(RendererInterface $renderer) {
$this->renderer = $renderer;
}
public function __construct(
private readonly RendererInterface $renderer,
) {}

/**
* {@inheritdoc}
Expand Down

0 comments on commit 4ab9dac

Please sign in to comment.