PHP Class Bob\Application

Inheritance: extends Pimple
ファイルを表示 Open project: chh/bob Class Usage Examples

Public Properties

Property Type Description
$env # Public: Contains mappings from task name to a task instance.
$forceRun # Public: Contains mappings from task name to a task instance.
$loadedConfigs # Public: Contains mappings from task name to a task instance.
$originalDirectory # Public: Contains mappings from task name to a task instance.
$projectDirectory # Public: Contains mappings from task name to a task instance.
$trace # Public: Contains mappings from task name to a task instance.

Protected Properties

Property Type Description
$taskLibraries

Public Methods

Method Description
__construct ( ) # Public: Initialize the application.
defineTask ( $task )
execute ( $tasks )
fileTask ( $target, $prerequisites, $action )
init ( )
register ( bob\TaskLibraryInterface $taskLib, array $parameters = [] )
task ( $name, $prerequisites = null, $action = null )
taskDefined ( $task )

Protected Methods

Method Description
loadConfig ( ) # Returns nothing.
loadConfigFile ( $file ) # Load config file in its own scope
prepareEnv ( )

Method Details

__construct() public method

# Public: Initialize the application.
public __construct ( )

defineTask() public method

public defineTask ( $task )

execute() public method

public execute ( $tasks )

fileTask() public method

public fileTask ( $target, $prerequisites, $action )

init() public method

public init ( )

loadConfig() protected method

# Returns nothing.
protected loadConfig ( )

loadConfigFile() protected method

# Load config file in its own scope
protected loadConfigFile ( $file )

prepareEnv() protected method

protected prepareEnv ( )

register() public method

public register ( bob\TaskLibraryInterface $taskLib, array $parameters = [] )
$taskLib bob\TaskLibraryInterface
$parameters array

task() public method

public task ( $name, $prerequisites = null, $action = null )

taskDefined() public method

public taskDefined ( $task )

Property Details

$env public_oe property

# Public: Contains mappings from task name to a task instance.
public $env

$forceRun public_oe property

# Public: Contains mappings from task name to a task instance.
public $forceRun

$loadedConfigs public_oe property

# Public: Contains mappings from task name to a task instance.
public $loadedConfigs

$originalDirectory public_oe property

# Public: Contains mappings from task name to a task instance.
public $originalDirectory

$projectDirectory public_oe property

# Public: Contains mappings from task name to a task instance.
public $projectDirectory

$taskLibraries protected_oe property

protected $taskLibraries

$trace public_oe property

# Public: Contains mappings from task name to a task instance.
public $trace