mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
22 lines
458 B
PHP
22 lines
458 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 = [
|
|
'otherExtendedMethod'
|
|
];
|
|
|
|
public function otherExtendedMethod()
|
|
{
|
|
return "otherExtendedMethod";
|
|
}
|
|
}
|