UserFrosting API

Bakery

Base class for UserFrosting Bakery CLI tools.

Tags
author

Alex Weissman (https://alexanderweissman.com)

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

$ci

protected ContainerInterface $ci

$scheme

protected string $scheme = 'bakery://'

Methods

__construct()

Constructor.

public __construct( ) : mixed
Return values
mixed

run()

Run the Symfony Console App.

public run( ) : mixed
Return values
mixed

loadCommands()

Return the list of available commands for a specific sprinkle.

protected loadCommands( ) : mixed
Return values
mixed

getResourceClass()

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
string

setupBaseSprinkleList()

Write the base `sprinkles.json` file if none exist.

protected setupBaseSprinkleList( ) : string
Return values
string

The sprinkle model file

Search results