PHP Class Neos\Flow\Core\Booting\Sequence

Exibir arquivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$identifier string
$steps array

Public Methods

Method Description
__construct ( string $identifier )
addStep ( Step $step, string $previousStepIdentifier = 'start' ) : void Adds the given step to this sequence, to be executed after then step specified by $previousStepIdentifier. If no previous step is specified, the new step is added to the list of steps executed right at the start of the sequence.
invoke ( Bootstrap $bootstrap ) : void Executes all steps of this sequence
removeStep ( string $stepIdentifier ) : void Removes all occurrences of the specified step from this sequence

Protected Methods

Method Description
invokeStep ( Step $step, Bootstrap $bootstrap ) : void Invokes a single step of this sequence and also invokes all steps registered to be executed after the given step.

Method Details

__construct() public method

public __construct ( string $identifier )
$identifier string

addStep() public method

Adds the given step to this sequence, to be executed after then step specified by $previousStepIdentifier. If no previous step is specified, the new step is added to the list of steps executed right at the start of the sequence.
public addStep ( Step $step, string $previousStepIdentifier = 'start' ) : void
$step Step The new step to add
$previousStepIdentifier string The preceding step
return void

invoke() public method

Executes all steps of this sequence
public invoke ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
return void

invokeStep() protected method

Invokes a single step of this sequence and also invokes all steps registered to be executed after the given step.
protected invokeStep ( Step $step, Bootstrap $bootstrap ) : void
$step Step The step to invoke
$bootstrap Neos\Flow\Core\Bootstrap
return void

removeStep() public method

Removes all occurrences of the specified step from this sequence
public removeStep ( string $stepIdentifier ) : void
$stepIdentifier string
return void

Property Details

$identifier protected_oe property

protected string $identifier
return string

$steps protected_oe property

protected array $steps
return array