Tip
Check out the schema to learn about all available config options.
When using the console commands, you can use a config file to define several bundler options.
The following file formats are supported currently:
jsonphpyaml,yml
When using PHP files to provide configuration, make sure to:
- either return an instance of
Typo3VendorBundlerConfig - or return a closure which returns an instance of
Typo3VendorBundlerConfig.
Example:
<?php
declare(strict_types=1);
use EliasHaeussler\Typo3VendorBundler;
return new Typo3VendorBundler\Config\Typo3VendorBundlerConfig(
autoload: new Typo3VendorBundler\Config\AutoloadConfig(
backup: true,
),
dependencies: new Typo3VendorBundler\Config\DependenciesConfig(
sbom: new Typo3VendorBundler\Config\Sbom(
includeDev: false,
),
backup: true,
),
dependencyExtraction: new Typo3VendorBundler\Config\DependencyExtractionConfig(
enabled: true,
),
pathToVendorLibraries: 'Build/Libraries',
);If no config file is explicitly configured, the config reader tries to auto-detect its location. The following order is taken into account during auto-detection:
typo3-vendor-bundler.phptypo3-vendor-bundler.jsontypo3-vendor-bundler.yamltypo3-vendor-bundler.yml