Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91692076
AphrontResponseProducerInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 13, 13:08
Size
687 B
Mime Type
text/x-php
Expires
Fri, Nov 15, 13:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22308655
Attached To
rPH Phabricator
AphrontResponseProducerInterface.php
View Options
<?php
/**
* An object can implement this interface to allow it to be returned directly
* from an @{class:AphrontController}.
*
* Normally, controllers must return an @{class:AphrontResponse}. Sometimes,
* this is not convenient or requires an awkward API. If it's preferable to
* return some other type of object which is equivalent to or describes a
* valid response, that object can implement this interface and produce a
* response later.
*/
interface
AphrontResponseProducerInterface
{
/**
* Produce the equivalent @{class:AphrontResponse} for this object.
*
* @return AphrontResponse Equivalent response.
*/
public
function
produceAphrontResponse
();
}
Event Timeline
Log In to Comment