Platformsh\Cli\Local\LocalBuild::__construct PHP Method

__construct() public method

LocalBuild constructor.
public __construct ( array $settings = [], CliConfig $config = null, Symfony\Component\Console\Output\OutputInterface $output = null )
$settings array Possible settings: - clone (bool, default false) Clone the repository to the build directory before building, where possible. - copy (bool, default false) Copy files instead of symlinking them, where possible. - abslinks (bool, default false) Use absolute paths in symlinks. - no-archive (bool, default false) Do not archive or use an archive of the build. - no-cache (bool, default false) Disable the package cache (if relevant and if the package manager supports this). - no-clean (bool, default false) Disable cleaning up old builds or old build archives. - no-build-hooks (bool, default false) Disable running build hooks. - concurrency (int) Specify a concurrency for Drush Make, if applicable (when using the Drupal toolstack). - working-copy (bool, default false) Specify the --working-copy option to Drush Make, if applicable. - lock (bool, default false) Create or update a lock file via Drush Make, if applicable. - run-deploy-hooks (bool, default false) Run deploy hooks.
$config Platformsh\Cli\CliConfig Optionally, inject a specific CLI configuration object.
$output Symfony\Component\Console\Output\OutputInterface Optionally, inject a specific Symfony Console output object.
    public function __construct(array $settings = [], CliConfig $config = null, OutputInterface $output = null)
    {
        $this->config = $config ?: new CliConfig();
        $this->settings = $settings;
        $this->output = $output ?: new NullOutput();
        $this->shellHelper = new ShellHelper($this->output);
        $this->fsHelper = new FilesystemHelper($this->shellHelper);
        $this->fsHelper->setRelativeLinks(empty($settings['abslinks']));
        $this->gitHelper = new GitHelper($this->shellHelper);
    }