Page MenuHomestyx hydra

DiffusionRepositoryDefaultController.php
No OneTemporary

DiffusionRepositoryDefaultController.php

<?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

Mime Type
text/x-php
Expires
Tue, Dec 2, 6:22 PM (11 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
432464
Default Alt Text
DiffusionRepositoryDefaultController.php (670 B)

Event Timeline