silverstripe-multiform/tests/Stubs/MultiFormTestController.php

19 lines
476 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\MultiForm\Tests\Stubs;
use SilverStripe\Control\Controller;
2017-09-08 03:57:33 +02:00
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\TestOnly;
class MultiFormTestController extends Controller implements TestOnly
{
2017-09-08 03:57:33 +02:00
private static $url_segment = 'MultiFormTestController';
2017-09-08 03:57:33 +02:00
public function Form()
{
2017-09-08 03:57:33 +02:00
return Injector::inst()->get(MultiFormTestForm::class, false, [$this, 'Form'])
->setHTMLID(MultiFormTestForm::class);
}
}