"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Classes/Command/SchemaCommandController.php" between
flow-development-collection-7.2.0.tar.gz and flow-development-collection-7.2.1.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

SchemaCommandController.php  (flow-development-collection-7.2.0):SchemaCommandController.php  (flow-development-collection-7.2.1)
skipping to change at line 61 skipping to change at line 61
*/ */
public function validateCommand(string $configurationFile = null, string $sc hemaFile = 'resource://Neos.Flow/Private/Schema/Schema.schema.yaml', bool $verbo se = false) public function validateCommand(string $configurationFile = null, string $sc hemaFile = 'resource://Neos.Flow/Private/Schema/Schema.schema.yaml', bool $verbo se = false)
{ {
$this->outputLine('Validating <b>' . $configurationFile . '</b> with sch ema <b>' . $schemaFile . '</b>'); $this->outputLine('Validating <b>' . $configurationFile . '</b> with sch ema <b>' . $schemaFile . '</b>');
$this->outputLine(); $this->outputLine();
$schema = Yaml::parseFile($schemaFile); $schema = Yaml::parseFile($schemaFile);
if (is_null($configurationFile)) { if (is_null($configurationFile)) {
$result = new Result(); $result = new Result();
$activePackages = $this->packageManager->getAvailablePackages(); $activeFlowPackages = $this->packageManager->getFlowPackages();
foreach ($activePackages as $package) { foreach ($activeFlowPackages as $package) {
$packageKey = $package->getPackageKey(); $packageKey = $package->getPackageKey();
$packageSchemaPath = Files::concatenatePaths([$package->getResou rcesPath(), 'Private/Schema']); $packageSchemaPath = Files::concatenatePaths([$package->getResou rcesPath(), 'Private/Schema']);
if (is_dir($packageSchemaPath) && $packageKey !== 'Neos.Utility. Schema') { if (is_dir($packageSchemaPath) && $packageKey !== 'Neos.Utility. Schema') {
foreach (Files::getRecursiveDirectoryGenerator($packageSchem aPath, '.schema.yaml') as $schemaFile) { foreach (Files::getRecursiveDirectoryGenerator($packageSchem aPath, '.schema.yaml') as $schemaFile) {
$configuration = Yaml::parseFile($schemaFile); $configuration = Yaml::parseFile($schemaFile);
$schemaPath = str_replace(FLOW_PATH_ROOT, '', $schemaFil e); $schemaPath = str_replace(FLOW_PATH_ROOT, '', $schemaFil e);
$configurationResult = $this->schemaValidator->validate( $configuration, $schema); $configurationResult = $this->schemaValidator->validate( $configuration, $schema);
$result->forProperty($schemaPath)->merge($configurationR esult); $result->forProperty($schemaPath)->merge($configurationR esult);
} }
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)