Skip to content

tomMolin/flysystem-adapter

 
 

Repository files navigation

Fork modified

Source: https://github.com/php-translation/flysystem-adapter Updated:

  • Custom Flysystem storage for remote file checks instead of local
  • Updated Flysystem function names
  • Updated local filesystem checks for resources

Commands:

php bin/console translation:download remote --cache
php bin/console translation:sync remote down

Adapter for Flysystem

Latest Version Build Status Code Coverage Quality Score Total Downloads

This is an PHP-translation adapter for Flysystem.

Install

composer require php-translation/flysystem-adapter
Symfony bundle

If you want to use the Symfony bundle you may activate it in kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Translation\PlatformAdapter\Flysystem\Bridge\Symfony\TranslationAdapterFlysystemBundle(),
    );
}

Configure Flysystem adapters like

# /app/config/config.yml
translation_adapter_flysystem:
  filesystems:
    local:
      flysystem_service: 'local.service_id' 
      path: 'path/to/trans' 
    foobar:
      flysystem_service: 'foobar.service_id' 
      path: 'path/to/trans' 

This will produce two services named php_translation.adapter.flysystem.local and php_translation.adapter.flysystem.foobar that could be used in the configuration for the Translation Bundle.

Documentation

Read our documentation at http://php-translation.readthedocs.io.

Contribute

Do you want to make a change? Pull requests are welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%