mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
20 lines
406 B
PHP
20 lines
406 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Comments\Tests\Stubs;
|
||
|
|
||
|
use SilverStripe\Comments\Tests\Stubs\CommentableItem;
|
||
|
use SilverStripe\Control\Controller;
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
|
||
|
/**
|
||
|
* @package comments
|
||
|
* @subpackage tests
|
||
|
*/
|
||
|
class CommentableItemController extends Controller implements TestOnly
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
return CommentableItem::get()->first()->CommentsForm();
|
||
|
}
|
||
|
}
|