class TwillCapsules (View source)

Properties

Capsule[] $registeredCapsules

Methods

registerPackageCapsule(string $name, string $namespace, string $path, string $singular = null, bool $enabled = true, bool $automaticNavigation = true)

No description

void
registerCapsule(Capsule $capsule)

No description

makeProjectCapsule(string $name)

Generates a non package capsule object.

getCapsuleForModule(string $module)

No description

getCapsuleForModel(TwillModelContract $model)

No description

Collection
getRegisteredCapsules()

No description

void
loadProjectCapsules()

No description

string
capsuleNamespace($capsuleName, $type = null)

No description

string
capsuleNamespaceToPath($namespace, $capsuleNamespace, $rootPath)

No description

string
getProjectCapsulesPath()

No description

getAutoloader()

No description

Details

Capsule registerPackageCapsule(string $name, string $namespace, string $path, string $singular = null, bool $enabled = true, bool $automaticNavigation = true)

No description

Parameters

string $name
string $namespace
string $path
string $singular
bool $enabled
bool $automaticNavigation

Return Value

Capsule

void registerCapsule(Capsule $capsule)

No description

Parameters

Capsule $capsule

Return Value

void

Capsule makeProjectCapsule(string $name)

Generates a non package capsule object.

Parameters

string $name

Return Value

Capsule

Capsule getCapsuleForModule(string $module)

No description

Parameters

string $module

Return Value

Capsule

Exceptions

NoCapsuleFoundException

Capsule getCapsuleForModel(TwillModelContract $model)

No description

Parameters

TwillModelContract $model

Return Value

Capsule

Exceptions

NoCapsuleFoundException

Collection getRegisteredCapsules()

No description

Return Value

Collection

void loadProjectCapsules()

No description

Return Value

void

string capsuleNamespace($capsuleName, $type = null)

No description

Parameters

$capsuleName
$type

Return Value

string

string capsuleNamespaceToPath($namespace, $capsuleNamespace, $rootPath)

No description

Parameters

$namespace
$capsuleNamespace
$rootPath

Return Value

string

string getProjectCapsulesPath()

No description

Return Value

string

getAutoloader()

No description