2016-10-14 14:30:05 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Security\Tests\SecurityTest;
|
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
2022-10-17 17:58:20 +13:00
|
|
|
use SilverStripe\Control\HTTPResponse;
|
2016-10-14 14:30:05 +13:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
|
|
|
class NullController extends Controller implements TestOnly
|
|
|
|
{
|
|
|
|
|
2022-10-17 17:58:20 +13:00
|
|
|
public function redirect(string $url, int $code = 302): HTTPResponse
|
2016-12-16 17:34:21 +13:00
|
|
|
{
|
|
|
|
// NOOP
|
2022-10-17 17:58:20 +13:00
|
|
|
return HTTPResponse::create();
|
2016-12-16 17:34:21 +13:00
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public function Link($action = null)
|
|
|
|
{
|
|
|
|
return Controller::join_links('SecurityTest_NullController', $action, '/');
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
}
|