aimeos / aimeos-laravel

Laravel ecommerce package for ultra fast online shops, scalable marketplaces, complex B2B applications and #gigacommerce
https://aimeos.org/Laravel
MIT License
7.29k stars 1.05k forks source link

Class 'Aimeos\MW\Filesystem\Manager\Laravel' not found #277

Closed mailnike closed 5 years ago

mailnike commented 5 years ago

Environment

  1. Version (e.g. 2017.10) - 2019.04.4
  2. Operating system (Linux, Mac, Windows) - LINUX

Describe the bug

I've installed this package in existing Laravel Spark project. However, I am getting below error whenever I execute: 'php artisan aimeos:setup'.


 Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'Aimeos\MW\Filesystem\Manager\Laravel' not found

  at /Users/nikhil/Downloads/HomesteadCode/Laravel/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Base/Context.php:149
    145|    {
    146|        $config = $context->getConfig();
    147|        $path = storage_path( 'aimeos' );
    148| 
  > 149|        $fs = new \Aimeos\MW\Filesystem\Manager\Laravel( app( 'filesystem' ), $config, $path );
    150| 
    151|        return $context->setFilesystemManager( $fs );
    152|    }
    153| 

  Exception trace:

  1   Aimeos\Shop\Base\Context::addFilesystemManager(Object(Aimeos\MShop\Context\Item\Standard))
      /Users/nikhil/Downloads/HomesteadCode/Laravel/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Base/Context.php:84

  2   Aimeos\Shop\Base\Context::get("command")
      /Users/nikhil/Downloads/HomesteadCode/Laravel/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/SetupCommand.php:52
aimeos commented 5 years ago

Can you please post the output of composer show?

mailnike commented 5 years ago

Removed
aimeos commented 5 years ago

There seems to be something missing because aimeos/ai-laravel is available and the class is in ./ext/ai-laravel/lib/custom/src/MW/Filesystem/Manager/Laravel.php. Can you check that and if not, remove ./ext/ai-laravel and run composer update again?

mailnike commented 5 years ago

Yes, did that. Now working. Not sure why it didn't work before. Thank you.