for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\ControllerPolicy\Tests\CachingPolicyTest;
use SilverStripe\Control\Controller;
use SilverStripe\ControllerPolicy\Policies\CachingPolicy;
use SilverStripe\Dev\TestOnly;
class CachingPolicyController extends Controller implements TestOnly
{
private static $dependencies = [
$dependencies
'Policies' => '%$' . CachingPolicy::class,
];
private static $allowed_actions = [
$allowed_actions
'test',
private static $url_segment = 'CachingPolicyController';
$url_segment
public function test()
return 'Hello world!';
}