Classes/Domain/Code/YamlFile.php
/**
     * @param DistributionPackageInterface $distributionPackage
     * @param string $configurationFilePath
     * @return self
     */
@param DistributionPackageInterface $distributionPackage
@param string $configurationFilePath
@return self
@param DistributionPackageInterface $distributionPackage @param string $configurationFilePath @return self
public static function fromConfigurationInDistributionPackage(DistributionPackageInterface $distributionPackage, string $configurationFilePath): self
    {
        $path = $distributionPackage->getPackagePath()
            ->appendString('Configuration')
            ->appendString($configurationFilePath);
        if (file_exists($path->asString())) {
            $parser = new Yaml\Parser();
            return new self($path, $parser->parseFile($path->asString()) ?? []);
        } else {
            return new self($path, []);
        }
    }
public static function fromConfigurationInDistributionPackage ( DistributionPackageInterface $ distributionPackage , string $ configurationFilePath ) : self { $ path = $ distributionPackage -> getPackagePath ( ) -> appendString ( 'Configuration' ) -> appendString ( $ configurationFilePath ) ; if ( file_exists ( $ path -> asString ( ) ) ) { $ parser = new Yaml \ Parser ( ) ; return new self ( $ path , $ parser -> parseFile ( $ path -> asString ( ) ) ?? [ ] ) ; } else { return new self ( $ path , [ ] ) ; } }
@param DistributionPackageInterface $distributionPackage
 @param string $configurationFilePath
 @return self
@param DistributionPackageInterface $distributionPackage @param string $configurationFilePath @return self