Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[BUGFIX] fix naming and namespacing of classes

  • Loading branch information...
commit f5f1748404b96219807437b5065d2e5cecad0cf0 1 parent 8bffb28
@fnagel authored
View
3  Classes/Task/MigrateRelationsTask.php
@@ -1,4 +1,5 @@
<?php
+namespace TYPO3\CMS\DamFalmigration\Task;
/***************************************************************
* Copyright notice
*
@@ -31,7 +32,7 @@
* @author Benjamin Mack <benni@typo3.org>
*
*/
-class tx_damfalmigration_task_migraterelationstask extends tx_scheduler_task {
+class MigrateRelationsTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
/**
* main function, needs to return TRUE or FALSE in order to tell
View
10 Classes/Task/MigrateTask.php
@@ -1,6 +1,5 @@
<?php
-namespace TYPO3\CMS\DamFalmgiration\Task;
-
+namespace TYPO3\CMS\DamFalmigration\Task;
/***************************************************************
* Copyright notice
*
@@ -38,7 +37,7 @@
* @author Benjamin Mack <benni@typo3.org>
*
*/
-class tx_damfalmigration_task_migratetask extends tx_scheduler_task {
+class MigrateTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
// the storage object for the fileadmin
protected $storageUid = 1;
@@ -85,7 +84,7 @@ public function execute() {
// DB-query to update all info
/** @var $fileRepository t3lib_file_Repository_FileRepository */
- $fileRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\\TYPO3\\CMS\\Core\\Resource\\ResourceRepository');
+ $fileRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\FileRepository');
$migratedFiles = 0;
@@ -101,7 +100,8 @@ public function execute() {
// check if the DAM record is already indexed for FAL (based on the filename)
$fileObject = $storageObject->getFile($fullFileName);
- if ($fileObject instanceof t3lib_File_AbstractFile) {
+
+ if ($fileObject instanceof TYPO3\CMS\Core\Resource\File) {
// add the migrated uid of the DAM record to the FAL record
$updateData = array(
Please sign in to comment.
Something went wrong with that request. Please try again.