php-translation / symfony-bundle

Symfony integration for Translations
MIT License
327 stars 94 forks source link

Interface Translation\Common\Storage not found #414

Closed Ciloe closed 4 years ago

Ciloe commented 4 years ago

Hi !

I have this error with the version "php-translation/symfony-bundle": "^0.12",. You can see it in this file :

/var/www/symfony/vendor/php-translation/symfony-bundle/Service/StorageService.php:28

// Some codes
use Translation\Common\Storage;
// Some Uses

final class StorageService implements Storage 
{
// Somme codes
}

But the interface Storage does not exist. You nee to use StorageInterface

Ciloe commented 4 years ago

For more details, this is the lines on the composer install :

  - Installing php-translation/common (dev-master 5dd7ca8): Loading from cache
  - Installing php-translation/extractor (dev-master 0bf5b83): Loading from cache
  - Installing php-translation/symfony-storage (dev-master 9d6e34d): Loading from cache
  - Installing php-translation/symfony-bundle (dev-master 549cc8b): Loading from cache
odolbeau commented 4 years ago

Hi @Ciloe! It looks like you're using dev-master version of all repositories, that's why this is not working. :)

Ciloe commented 4 years ago

I fixed it with adding the common version in my composer

        "php-translation/common": "3.0.1",
        "php-translation/symfony-bundle": "0.12",