2017-09-07 01:32:55 +02:00
|
|
|
<?php
|
|
|
|
|
2017-09-08 05:59:53 +02:00
|
|
|
namespace SilverStripe\MultiForm\Tests\Stubs;
|
2017-09-07 01:32:55 +02:00
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
2017-09-08 03:57:33 +02:00
|
|
|
use SilverStripe\Core\Injector\Injector;
|
2017-09-07 01:32:55 +02:00
|
|
|
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-07 01:32:55 +02:00
|
|
|
|
2017-09-08 03:57:33 +02:00
|
|
|
public function Form()
|
2017-09-07 01:32:55 +02:00
|
|
|
{
|
2017-09-08 03:57:33 +02:00
|
|
|
return Injector::inst()->get(MultiFormTestForm::class, false, [$this, 'Form'])
|
|
|
|
->setHTMLID(MultiFormTestForm::class);
|
2017-09-07 01:32:55 +02:00
|
|
|
}
|
|
|
|
}
|