silverstripe-framework/tests/php/Control/RequestHandlingTest/AllowedControllerExtension.php

22 lines
463 B
PHP
Raw Normal View History

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
{
private static $allowed_actions = array(
'otherExtendedMethod'
);
2016-10-14 03:30:05 +02:00
public function otherExtendedMethod()
{
return "otherExtendedMethod";
}
2016-10-14 03:30:05 +02:00
}