silverstripe-framework/tests/php/Dev/DevAdminControllerTest/Controller1.php
Guy Sartorelli e46135be0a
NEW Refactor CLI interaction with Silverstripe app (#11353)
- Turn sake into a symfony/console app
- Avoid using HTTPRequest for CLI interaction
- Implement abstract hybrid execution path
2024-09-26 17:16:47 +12:00

33 lines
552 B
PHP

<?php
namespace SilverStripe\Dev\Tests\DevAdminControllerTest;
use SilverStripe\Control\Controller;
class Controller1 extends Controller
{
const OK_MSG = 'DevAdminControllerTest_Controller1 TEST OK';
private static $url_handlers = [
'' => 'index',
'y1' => 'y1Action'
];
private static $allowed_actions = [
'index',
'y1Action',
];
public function index()
{
echo Controller1::OK_MSG;
}
public function y1Action()
{
echo Controller1::OK_MSG . ' y1';
}
}