PHP Class Caffeinated\Modules\Repositories\Repository

Inheritance: implements Caffeinated\Modules\Contracts\Repository
Datei anzeigen Open project: caffeinated/modules

Protected Properties

Property Type Description
$config Illuminate\Config\Repository
$files Illuminate\Filesystem\Filesystem
$path Path to the defined modules directory

Public Methods

Method Description
__construct ( Illuminate\Config\Repository $config, Illuminate\Filesystem\Filesystem $files ) Constructor method.
getManifest ( string $slug ) : Collection | null Get a module's manifest contents.
getModulePath ( string $slug ) : string Get path for the specified module.
getNamespace ( ) : string Get modules namespace.
getPath ( ) : string Get modules path.
setPath ( string $path ) : object Set modules path in "RunTime" mode.

Protected Methods

Method Description
getAllBasenames ( ) : array Get all module basenames.
getManifestPath ( $slug ) : string Get path of module manifest file.

Method Details

__construct() public method

Constructor method.
public __construct ( Illuminate\Config\Repository $config, Illuminate\Filesystem\Filesystem $files )
$config Illuminate\Config\Repository
$files Illuminate\Filesystem\Filesystem

getAllBasenames() protected method

Get all module basenames.
protected getAllBasenames ( ) : array
return array

getManifest() public method

Get a module's manifest contents.
public getManifest ( string $slug ) : Collection | null
$slug string
return Collection | null

getManifestPath() protected method

Get path of module manifest file.
protected getManifestPath ( $slug ) : string
$slug
return string

getModulePath() public method

Get path for the specified module.
public getModulePath ( string $slug ) : string
$slug string
return string

getNamespace() public method

Get modules namespace.
public getNamespace ( ) : string
return string

getPath() public method

Get modules path.
public getPath ( ) : string
return string

setPath() public method

Set modules path in "RunTime" mode.
public setPath ( string $path ) : object
$path string
return object $this

Property Details

$config protected_oe property

protected Repository,Illuminate\Config $config
return Illuminate\Config\Repository

$files protected_oe property

protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$path protected_oe property

Path to the defined modules directory
protected $path