public function migrateFiles()
    {
        $fileResources = $this->getFileResourceData();

        foreach ($fileResources as $fileResourceData) {
            $resourceUri = $fileResourceData['fileResource']->getUri();
            if (!isset($fileResourceData['property'])) {
                $this->failedResources[$resourceUri][] = 'Unable to find property';
                continue;
            }
            if (!isset($fileResourceData['subject'])) {
                $this->failedResources[$resourceUri][] = 'Unable to find subject';
                continue;
            }

            ++$this->migrationInformation['old_resource_count'];
            $this->migrateResource(
                $fileResourceData['fileResource'], $fileResourceData['property'], $fileResourceData['subject']
            );
        }
    }
public function migrateFiles()
    {
        $fileResources = $this->getFileResourceData();

        foreach ($fileResources as $fileResourceData) {
            $resourceUri = $fileResourceData['fileResource']->getUri();
            if (!isset($fileResourceData['property'])) {
                $this->failedResources[$resourceUri][] = 'Unable to find property';
                continue;
            }
            if (!isset($fileResourceData['subject'])) {
                $this->failedResources[$resourceUri][] = 'Unable to find subject';
                continue;
            }

            ++$this->migrationInformation['old_resource_count'];
            $this->migrateResource(
                $fileResourceData['fileResource'], $fileResourceData['property'], $fileResourceData['subject']
            );
        }
    }
public function migrateFiles ( ) { $ fileResources = $ this -> getFileResourceData ( ) ; foreach ( $ fileResources as $ fileResourceData ) { $ resourceUri = $ fileResourceData [ 'fileResource' ] -> getUri ( ) ; if ( ! isset ( $ fileResourceData [ 'property' ] ) ) { $ this -> failedResources [ $ resourceUri ] [ ] = 'Unable to find property' ; continue ; } if ( ! isset ( $ fileResourceData [ 'subject' ] ) ) { $ this -> failedResources [ $ resourceUri ] [ ] = 'Unable to find subject' ; continue ; } ++ $ this -> migrationInformation [ 'old_resource_count' ] ; $ this -> migrateResource ( $ fileResourceData [ 'fileResource' ] , $ fileResourceData [ 'property' ] , $ fileResourceData [ 'subject' ] ) ; } }
Get the file resources and migrate them.

@return void
@throws FileSerializerException
Get the file resources and migrate them .