2016-10-14 03:30:05 +02:00
|
|
|
<?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
|
|
|
|
{
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $allowed_actions = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'otherExtendedMethod'
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function otherExtendedMethod()
|
|
|
|
{
|
|
|
|
return "otherExtendedMethod";
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|