Bakery
Base class for UserFrosting Bakery CLI tools.
Tags
Table of Contents
$app | Application | |
---|---|---|
$ci | ContainerInterface | |
$scheme | string | |
__construct() | Constructor. | mixed |
run() | Run the Symfony Console App. | mixed |
loadCommands() | Return the list of available commands for a specific sprinkle. | mixed |
getResourceClass() | Transform a Bakery Command Resource into a classpath. | string |
getClassNameFromFile() | Return the classname from the file instance. | string |
setupBaseSprinkleList() | Write the base `sprinkles.json` file if none exist. | string |
Properties
$app
protected
Application
$app
$ci
protected
ContainerInterface
$ci
$scheme
protected
string
$scheme
= 'bakery://'
Methods
__construct()
Constructor.
public
__construct(
)
: mixed
Return values
mixedrun()
Run the Symfony Console App.
public
run(
)
: mixed
Return values
mixedloadCommands()
Return the list of available commands for a specific sprinkle.
protected
loadCommands(
)
: mixed
Return values
mixedgetResourceClass()
Transform a Bakery Command Resource into a classpath.
protected
getResourceClass(
$file :
Resource
)
: string
Parameters
- $file : Resource
The command resource
Return values
string —The command class path
getClassNameFromFile()
Return the classname from the file instance.
protected
getClassNameFromFile(
$file :
Resource
)
: string
Parameters
- $file : Resource
The command resource
Return values
stringsetupBaseSprinkleList()
Write the base `sprinkles.json` file if none exist.
protected
setupBaseSprinkleList(
)
: string
Return values
string —The sprinkle model file