1 | <?php |
||
20 | class MultiDomainRequestFilter implements RequestFilter |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Gets the active domain, and sets its URL to the native one, with a vanity |
||
25 | * URL in the request |
||
26 | * |
||
27 | * @param HTTPRequest $request |
||
28 | * @param Session $session |
||
29 | * @param DataModel $model |
||
30 | */ |
||
31 | public function preRequest(HTTPRequest $request, Session $session, DataModel $model) |
||
55 | |||
56 | /** |
||
57 | * Post request noop |
||
58 | * @param HTTPRequest $request |
||
59 | * @param HTTPResponse $response |
||
60 | * @param DataModel $model |
||
61 | */ |
||
62 | public function postRequest(HTTPRequest $request, HTTPResponse $response, DataModel $model) |
||
65 | |||
66 | /** |
||
67 | * Creates a native URL for a domain. This functionality is abstracted so |
||
68 | * that other modules can overload it, e.g. translatable modules that |
||
69 | * have their own custom URLs. |
||
70 | * |
||
71 | * @param MultiDomainDomain $domain |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function createNativeURLForDomain(MultiDomainDomain $domain) |
||
81 | } |
||
82 |