Transform
in package
Transforms the structure file into the specified output format
This task will execute the transformation rules described in the given template with the given source and writes these to the target location (defaults to 'output').
It is possible for the user to receive additional information using the verbose option or stop additional information using the quiet option. Please take note that the quiet option also disables logging to file.
Table of Contents
- $flySystemFactory : FlySystemFactory
- $logger : LoggerInterface
- $templateFactory : Factory
- $transformer : Transformer
- __construct() : mixed
- Initializes the command with all necessary dependencies to construct human-suitable output from the AST.
- __invoke() : Payload
- Executes the business logic involved with this command.
- connectOutputToEvents() : void
- Connect a series of output messages to various events to display progress.
- createFileSystem() : FilesystemInterface
Properties
$flySystemFactory
private
FlySystemFactory
$flySystemFactory
$logger
private
LoggerInterface
$logger
$templateFactory
private
Factory
$templateFactory
$transformer
private
Transformer
$transformer
Principal object for guiding the transformation process
Methods
__construct()
Initializes the command with all necessary dependencies to construct human-suitable output from the AST.
public
__construct(Transformer $transformer, FlySystemFactory $flySystemFactory, LoggerInterface $logger, Factory $templateFactory) : mixed
Parameters
- $transformer : Transformer
- $flySystemFactory : FlySystemFactory
- $logger : LoggerInterface
- $templateFactory : Factory
Return values
mixed —__invoke()
Executes the business logic involved with this command.
public
__invoke(Payload $payload) : Payload
Parameters
- $payload : Payload
Tags
Return values
Payload —connectOutputToEvents()
Connect a series of output messages to various events to display progress.
private
connectOutputToEvents() : void
Return values
void —createFileSystem()
private
createFileSystem(Dsn $dsn) : FilesystemInterface
Parameters
- $dsn : Dsn