2016-08-05 00:55:41 +02:00
|
|
|
<?php
|
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
namespace SilverStripe\Control;
|
|
|
|
|
2016-08-05 00:55:41 +02:00
|
|
|
/**
|
|
|
|
* Interface that is implemented by controllers that are designed to hand control over to another controller.
|
|
|
|
* ModelAsController, which selects up a SiteTree object and passes control over to a suitable subclass of ContentController, is a good
|
|
|
|
* example of this.
|
|
|
|
*
|
|
|
|
* Controllers that implement this interface must always return a nested controller.
|
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
interface NestedController
|
|
|
|
{
|
2016-08-05 00:55:41 +02:00
|
|
|
|
2016-11-29 00:31:16 +01:00
|
|
|
/**
|
|
|
|
* Get overriding controller
|
|
|
|
*
|
|
|
|
* @return Controller
|
|
|
|
*/
|
|
|
|
public function getNestedController();
|
2016-08-05 00:55:41 +02:00
|
|
|
}
|