source/Internal/Application/Service/ProjectYamlImportService.php
public function removeNonExistingImports()
    {
        $projectConfig = $this->projectYamlDao->loadProjectConfigFile();

        $configChanged = false;
        foreach ($projectConfig->getImportFileNames() as $fileName) {
            if (file_exists($fileName)) {
                continue;
            }
            $projectConfig->removeImport($fileName);
            $configChanged = true;
        }

        if ($configChanged) {
            $this->projectYamlDao->saveProjectConfigFile($projectConfig);
        }
    }
public function removeNonExistingImports()
    {
        $projectConfig = $this->projectYamlDao->loadProjectConfigFile();

        $configChanged = false;
        foreach ($projectConfig->getImportFileNames() as $fileName) {
            if (file_exists($fileName)) {
                continue;
            }
            $projectConfig->removeImport($fileName);
            $configChanged = true;
        }

        if ($configChanged) {
            $this->projectYamlDao->saveProjectConfigFile($projectConfig);
        }
    }
public function removeNonExistingImports ( ) { $ projectConfig = $ this -> projectYamlDao -> loadProjectConfigFile ( ) ; $ configChanged = false ; foreach ( $ projectConfig -> getImportFileNames ( ) as $ fileName ) { if ( file_exists ( $ fileName ) ) { continue ; } $ projectConfig -> removeImport ( $ fileName ) ; $ configChanged = true ; } if ( $ configChanged ) { $ this -> projectYamlDao -> saveProjectConfigFile ( $ projectConfig ) ; } }
Checks if the import files exist and if not removes them
Checks if the import files exist and if not removes them