HordeReconfigureFlow
in package
Table of Contents
- $io : FlowIoInterface
- $mode : string
- Modes: symlink, copy
- $tree : DirectoryTree
- __construct() : mixed
- fromComposer() : self
- Named Constructor.
- fromPartialComposer() : self
- run() : int
- Run the reconfigure flow
- fromAnyComposer() : self
- Actual implementation of fromComposer / fromPartialComposer named constructors
Properties
$io
private
FlowIoInterface
$io
$mode
Modes: symlink, copy
private
string
$mode
= 'symlink'
$tree
private
DirectoryTree
$tree
Methods
__construct()
public
__construct(DirectoryTree $tree, FlowIoInterface $io[, string $mode = 'symlink' ]) : mixed
Parameters
- $tree : DirectoryTree
- $io : FlowIoInterface
- $mode : string = 'symlink'
Return values
mixed —fromComposer()
Named Constructor.
public
static fromComposer(Composer $composer[, FlowIoInterface|null $output = null ]) : self
Parameters
- $composer : Composer
- $output : FlowIoInterface|null = null
Return values
self —fromPartialComposer()
public
static fromPartialComposer(PartialComposer $composer[, FlowIoInterface|null $output = null ]) : self
Parameters
- $composer : PartialComposer
- $output : FlowIoInterface|null = null
Return values
self —run()
Run the reconfigure flow
public
run() : int
Return values
int —fromAnyComposer()
Actual implementation of fromComposer / fromPartialComposer named constructors
private
static fromAnyComposer(Composer|PartialComposer $composer[, FlowIoInterface|null $output = null ]) : self
Composer may provide a PartialCompoer or a Composer object. Use fromComposer and fromPartialComposer frontends
Parameters
- $composer : Composer|PartialComposer
-
A (partial) composer instance
- $output : FlowIoInterface|null = null
-
An IO interface