Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66512456
DiffusionRepositoryDefaultController.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
Tue, Jun 11, 00:57
Size
635 B
Mime Type
text/x-php
Expires
Thu, Jun 13, 00:57 (2 d)
Engine
blob
Format
Raw Data
Handle
18180079
Attached To
rPH Phabricator
DiffusionRepositoryDefaultController.php
View Options
<?php
final
class
DiffusionRepositoryDefaultController
extends
DiffusionController
{
public
function
processRequest
()
{
// NOTE: This controller is just here to make sure we call
// willBeginExecution() on any /diffusion/X/ URI, so we can intercept
// `git`, `hg` and `svn` HTTP protocol requests.
// If we made it here, it's probably because the user copy-pasted a
// clone URI with "/anything.git" at the end into their web browser.
// Send them to the canonical repository URI.
return
id
(
new
AphrontRedirectResponse
())
->
setURI
(
$this
->
getDiffusionRequest
()->
getRepository
()->
getURI
());
}
}
Event Timeline
Log In to Comment