Skip to content

Commit

Permalink
Merge pull request #1813 from creative-commoners/pulls/3/replace-exte…
Browse files Browse the repository at this point in the history
…nsion-subclasses

API Replace Extension subclasses
  • Loading branch information
GuySartorelli authored Aug 29, 2024
2 parents 67c5d86 + 7ca7a6d commit 3e6d103
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 46 deletions.
2 changes: 1 addition & 1 deletion code/CMSMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* configuration will also include a 'help' link to the SilverStripe user
* documentation.
*
* Additional CMSMenu items can be added through {@link LeftAndMainExtension::init()}
* Additional CMSMenu items can be added through {@link Extension::init()}
* extensions added to {@link LeftAndMain}.
*/
class CMSMenu implements IteratorAggregate, i18nEntityProvider
Expand Down
2 changes: 1 addition & 1 deletion code/CMSMenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* A simple CMS menu item.
*
* Items can be added to the menu through custom {@link LeftAndMainExtension}
* Items can be added to the menu through custom {@link Extension}
* classes and {@link CMSMenu}.
*
* @see CMSMenu
Expand Down
2 changes: 0 additions & 2 deletions code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ public static function getRequiredPermissions()
}

/**
* @uses LeftAndMainExtension->init()
* @uses LeftAndMainExtension->accessedCMS()
* @uses CMSMenu
*/
protected function init()
Expand Down
40 changes: 0 additions & 40 deletions code/LeftAndMainExtension.php

This file was deleted.

4 changes: 2 additions & 2 deletions tests/php/CMSProfileControllerTest/TestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SilverStripe\Admin\Tests\CMSProfileControllerTest;

use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;

class TestExtension extends DataExtension
class TestExtension extends Extension
{
protected function canEdit($member = null)
{
Expand Down

0 comments on commit 3e6d103

Please sign in to comment.