Moving from Laravel 5.3 to a new laravel 5.4 fresh installation Ive been constantly receiving:
ReflectionException in Container.php line 731: Class PATH_TO\ProductInterface does not exist
The error display the following structure:
in Container.php line 731
at ReflectionParameter->getClass() in Container.php line 731
at Container->resolveDependencies(array(object(ReflectionParameter), object(ReflectionParameter))) in Container.php line 708
at Container->build('App\\Http\\Controllers\\ProductController') in Container.php line 565
at Container->make('App\\Http\\Controllers\\ProductController') in Application.php line 702
at Application->make('App\\Http\\Controllers\\ProductController') in Route.php line 217
at Route->getController() in Route.php line 726
at Route->controllerMiddleware() in Route.php line 687
at Route->gatherMiddleware() in Router.php line 572
at Router->gatherRouteMiddleware(object(Route)) in Router.php line 552
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520
at Router->dispatchToRoute(object(Request)) in Router.php line 498
at Router->dispatch(object(Request)) in Kernel.php line 174
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
line 731 in Container.php -
$results[] = is_null($class = $dependency->getClass())
Complete function of line 731:
protected function resolveDependencies(array $dependencies)
{
$results = [];
foreach ($dependencies as $dependency) {
// If the class is null, it means the dependency is a string or some other
// primitive type which we can not resolve since it is not a class and
// we will just bomb out with an error since we have no-where to go.
$results[] = is_null($class = $dependency->getClass())
? $this->resolvePrimitive($dependency)
: $this->resolveClass($dependency);
}
return $results;
My Composer.JSON displays the following components:
"require": {
"php": ">=5.6.4",
"dts/ebay-sdk-php": "8.*",
"laravel/framework": "5.4.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4",
"talyssonoc/react-laravel": "0.11",
"torann/geoip": "^1.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0"
},
finally, the most important part, I checked and the files product and productinterface are part of the project and at correct paths. brgds.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lihc3L
via IFTTT
Aucun commentaire:
Enregistrer un commentaire