silverstripe-framework/tests/php/Control/RequestHandlingTest/AllowedControllerExtension.php
2016-12-19 16:08:19 +13:00

22 lines
463 B
PHP

<?php
namespace SilverStripe\Control\Tests\RequestHandlingTest;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;
/**
* Simple extension for the test controller - with allowed_actions define
*/
class AllowedControllerExtension extends Extension implements TestOnly
{
private static $allowed_actions = array(
'otherExtendedMethod'
);
public function otherExtendedMethod()
{
return "otherExtendedMethod";
}
}