Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Replace Extension subclasses #1813

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading