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
Properties
- $flySystemFactory : FlySystemFactory
- $logger : LoggerInterface
- $templateFactory : Factory
- $transformer : Transformer
Methods
- __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 read-only
private
FlySystemFactory
$flySystemFactory
$logger read-only
private
LoggerInterface
$logger
$templateFactory read-only
private
Factory
$templateFactory
$transformer read-only
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
__invoke()
Executes the business logic involved with this command.
public
__invoke(Payload $payload) : Payload
Parameters
- $payload : Payload
Tags
Return values
PayloadconnectOutputToEvents()
Connect a series of output messages to various events to display progress.
private
connectOutputToEvents() : void
createFileSystem()
private
createFileSystem(Dsn $dsn) : FilesystemInterface
Parameters
- $dsn : Dsn