Skip to content

Commit c820291

Browse files
authored
Remove unneeded method override.
`Controller` already has `viewClass()` method.
1 parent 5ebd299 commit c820291

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Controller/ControllerTrait.php

-16
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,4 @@ public function setViewClasses(array $map): void
8383
{
8484
$this->viewClasses = $map;
8585
}
86-
87-
/**
88-
* Get the View classes this controller can perform content negotiation with.
89-
*
90-
* Each view class must implement the `getContentType()` hook method
91-
* to participate in negotiation.
92-
*
93-
* This overrides the Controller::viewClasses() of core.
94-
*
95-
* @see Cake\Http\ContentTypeNegotiation
96-
* @return array<string, class-string<\Cake\View\View>>
97-
*/
98-
public function viewClasses(): array
99-
{
100-
return $this->viewClasses;
101-
}
10286
}

0 commit comments

Comments
 (0)