I have a Fuel task that iterates through directories and adds/updates files to a MySQL database. It uses RecursiveDirectoryIterator and RecursiveIteratorIterator, but apparently this is illegal.
I keep getting this error when running 'php oil refine updatedb' (file is fuel/app/tasks/updatedb.php):
PHP Fatal error: Class 'Fuel\Tasks\RecursiveDirectoryIterator' not found in /var/www/vhosts/basketbuild.com/sitebeta/fuel/app/tasks/updatedb.php on line 15 Error - Class 'Fuel\Tasks\RecursiveDirectoryIterator' not found in APPPATH/tasks/updatedb.php on line 15
Obviously RecursiveDirectoryIterator is not a Fuel class, it's a standard PHP class. Why is it looking for a Fuel class and how can I fix this?
Tried searching through the docs but found nothing helpful.