Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F975300
DiffusionRepositoryDefaultController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
670 B
Referenced Files
None
Subscribers
None
DiffusionRepositoryDefaultController.php
View Options
<?php
final
class
DiffusionRepositoryDefaultController
extends
DiffusionController
{
protected
function
processDiffusionRequest
(
AphrontRequest
$request
)
{
// 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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 8:49 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227319
Default Alt Text
DiffusionRepositoryDefaultController.php (670 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment