类不存在,ReflectionError

时间:2015-07-08 14:17:47

标签: php namespaces laravel-5 composer-php

我在项目中更改了文件夹结构和命名空间。以前我在控制器中使用了以下命名空间:

driver.findElement(By.xpath("//input[@id='files']")).sendKeys("D:"+File.separator+"images"+File.separator+"Lighthouse.jpg"");  
driver.findElement(By.xpath("//input[@id='files']")).sendKeys("D:"+File.separator+"images"+File.separator+"home.jpg");
driver.findElement(By.xpath("//input[@id='files']")).sendKeys("D:"+File.separator+"images"+File.separator+"tsquare.jpg");
Thread.sleep(5000); 
driver.findElement(By.xpath("//button[@id='Upload']")).click(); // Upload button

我更改了文件夹结构并将所有命名空间更改为

App\Http\Controllers\FrontEnd\

我跑:

App\Http\FrontEnd\Controllers\

然后我跑:

composer self-update

最后我跑:

composer dump-autoload -o

所有内容都已成功更新,然后在结束时我收到此错误:

composer update

我能想到的唯一想法就是我忘了改变一些重要的东西。

1 个答案:

答案 0 :(得分:1)

您需要查看AuthController的项目文件用法。您说您将文件夹结构更改为App\Http\FrontEnd\Controllers\,并且正如您在AuthController中看到的那样,您会收到错误App\Http\Controllers\FrontEnd\Auth\AuthController,因此您的代码可能位于Auth\AuthController:...

相关问题