Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/contentsource/PhabricatorContentSource.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | public static function newConsoleSource() { | ||||
return self::newForSource( | return self::newForSource( | ||||
self::SOURCE_CONSOLE, | self::SOURCE_CONSOLE, | ||||
array()); | array()); | ||||
} | } | ||||
public static function newFromRequest(AphrontRequest $request) { | public static function newFromRequest(AphrontRequest $request) { | ||||
return self::newForSource( | return self::newForSource( | ||||
self::SOURCE_WEB, | self::SOURCE_WEB, | ||||
array( | array()); | ||||
'ip' => $request->getRemoteAddr(), | |||||
)); | |||||
} | } | ||||
public static function newFromConduitRequest(ConduitAPIRequest $request) { | public static function newFromConduitRequest(ConduitAPIRequest $request) { | ||||
return self::newForSource( | return self::newForSource( | ||||
self::SOURCE_CONDUIT, | self::SOURCE_CONDUIT, | ||||
array()); | array()); | ||||
} | } | ||||
Show All 39 Lines |