kevbaldwyn / image

Responsive images and on the fly image sizing for laravel 4 and fuel php
23 stars 13 forks source link

Wrong namespace? #16

Closed brack11 closed 10 years ago

brack11 commented 10 years ago

Wen I follow installation path for laravel 4 I see the suggestion to add in providers list 'KevBaldwyn\Image\ImageServiceProvider' but it causes error "PHP Fatal error: Class 'KevBaldwyn\Image\ImageServiceProvider' not found" after investigating ImageServiceProvider.php I found that corrct namespace of that class is 'KevBaldwyn\Image\Providers\Laravel\ImageServiceProvider' Maybe you can change the installation description? or I dont understand something or do something wrong?

brack11 commented 10 years ago

Yet another error "Class 'KevBaldwyn\Image\Facades\Image' not found" I guess I'm too stupid to use this plugin. Class Image in Imape.php has different namespace.

stanwarri commented 10 years ago

I have the same issue. I think this is broken to use with Laravel. No proper namespacing

kcjpop commented 10 years ago

Correct namespace path to ImageServiceProvider should be KevBaldwyn\Image\Providers\Laravel\ImageServiceProvider and to facade KevBaldwyn\Image\Providers\Laravel\Facades\Image. Just have a look at the source code and you'll find it easily.

kevbaldwyn commented 10 years ago

Sorry everyone, struggling with work and other commitments to find the time to maintain the Laravel side of this project. Will do as soon as things free up for me. As mentioned, the namespace issue is a simple fix if you look at the source.

kevbaldwyn commented 10 years ago

Have updated the documentation.