Gitamin\Http\Controllers\Projects\BlobController::index PHP Метод

index() публичный Метод

public index ( $owner, $project, $commitishPath )
    public function index($owner, $project, $commitishPath)
    {
        $repository = $project->getRepository();
        list($branch, $file) = $this->extractReference($repository, $commitishPath, $project->slug);
        $blob = $repository->getBlob("{$branch}:\"{$file}\"");
        $breadcrumbs = app('git_util')->getBreadcrumbs($file);
        $fileType = app('git_util')->getFileType($file);
        if ($fileType !== 'image' && app('git_util')->isBinary($file)) {
            return redirect::route('blob_raw', ['owner' => $owner, 'project' => $project, 'commitishPath' => $commitishPath]);
        }
        return View::make('projects/file')->withOwner($owner)->withProject($project)->withFile($file)->withFileType($fileType)->withBlob($blob->output())->withBranch($branch)->withBreadcrumbs($breadcrumbs)->withBranches($repository->getBranches())->withTags($repository->getTags());
    }
BlobController