Skip to content

Commit

Permalink
Merge pull request #852 from creative-commoners/pulls/8/protect-hooks-2
Browse files Browse the repository at this point in the history
API Set extension hook implementation visibility to protected
  • Loading branch information
tractorcow authored May 21, 2024
2 parents ae72395 + 27fd72e commit 80a09b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/en/dataobjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ use TractorCow\Fluent\Extension\FluentExtension;

class PlayerExtension extends FluentExtension
{
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$fields->removeByName('SomeIrrelevantField');
parent::updateCMSFields($fields);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SiteTreeFluentExtension extends SiteTreeExtension
* @param SQLSelect $query
* @param DataQuery|null $dataQuery
*/
public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
{
// We only want to apply this logic on the frontend.
if (!FluentState::singleton()->getIsFrontend()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/FluentReadVersionsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FluentReadVersionsExtension extends Extension
*
* @param DataList &$list
*/
public function updateList(DataList &$list)
protected function updateList(DataList &$list)
{
/** @var DataObject $singleton */
$singleton = Injector::inst()->get($list->dataClass());
Expand Down

0 comments on commit 80a09b0

Please sign in to comment.