PHP Class Gitamin\Http\Controllers\Controller

Inheritance: extends Illuminate\Routing\Controller, use trait Illuminate\Foundation\Auth\Access\AuthorizesRequests, use trait Illuminate\Foundation\Auth\Access\AuthorizesResources, use trait Illuminate\Foundation\Bus\DispatchesJobs, use trait Illuminate\Foundation\Validation\ValidatesRequests
Datei anzeigen Open project: gitaminhq/gitamin Class Usage Examples

Protected Properties

Property Type Description
$repositories

Public Methods

Method Description
__construct ( )
getPager ( $pageNumber, $totalCommits )

Protected Methods

Method Description
extractReference ( $repository, $commitishPath, $repo )
parseBranchTreeParam ( GitList\Git\Repository $repository, string $branch = '', string $tree = '' ) : array Returns an Array where the first value is the tree-ish and the second is the path.
parseCommitishPathParam ( $repository, $commitishPath, $repo ) * @brief Return $commitish, $path parsed from $commitishPath, based on what's in $repo. Raise a 404 if $branchpath does not represent a valid branch and path.

Method Details

__construct() public method

public __construct ( )

extractReference() protected method

protected extractReference ( $repository, $commitishPath, $repo )

getPager() public method

public getPager ( $pageNumber, $totalCommits )

parseBranchTreeParam() protected method

Returns an Array where the first value is the tree-ish and the second is the path.
protected parseBranchTreeParam ( GitList\Git\Repository $repository, string $branch = '', string $tree = '' ) : array
$repository GitList\Git\Repository
$branch string
$tree string
return array

parseCommitishPathParam() protected method

A helper for parsing routes that use commit-ish names and paths separated by /, since route regexes are not enough to get that right.
protected parseCommitishPathParam ( $repository, $commitishPath, $repo )
$commitishPath
$repo

Property Details

$repositories protected_oe property

protected $repositories